Opinion
— We are confronted here with the question whether a convicted indigent defendant upon being sentenced or otherwise ordered to pay a fine and a penalty assessment can be required to serve them out in jail at a specified rate per day because he is unable to pay them. As we explain infra, such a defendant has no choice at all and in reality is being imprisoned for his poverty, Although a direction for confinement for default in payment of a fine may appear to apply equally to both the rich offender and the poor one, actually the former has the *104opportunity to escape his confinement while the right of the latter to pay what he cannot, is a hollow one. We cannot countenance such a difference in treatment and, absent any compelling state interest necessitating it, we conclude that it constitutes an invidious discrimination on the basis of wealth in violation of the equal protection clause of the Fourteenth Amendment. We will not permit this petitioner to be given such a Hobson’s choice.
Simeon Munsell Antazo, petitioner herein, was confined in the Santa Clara County jail at the Elmwood Rehabilitation Center in Milpitas pursuant to a superior court probation order requiring him to pay, as a condition of probation, a fine in the amount of $2,500 plus a penalty assessment in the amount of $625, or, in lieu of payment thereof to be imprisoned in the county jail one day for each $10 of the unpaid amount. Petitioner seeks a writ of habeas corpus on the ground that Penal Code sections 12051 and 13521,2 which authorize the imposition of a fine (§ 1205) and the *105levy of a penalty assessment (§ 13521) as well as imprisonment pending payment thereof (§ 1205) are unconstitutional as applied to him. He contends in his petition that his imprisonment pursuant to these statutes as a result of his inability, due solely to his indigency, to pay his fine and penalty assessment constitutes an invidious discrimination based on poverty in violation of the equal protection clause of the Fourteenth Amendment to the United States Constitution. We issued an order to show cause and ordered petitioner released upon his own recognizance pending final determination of this matter.
We first set forth the pertinent facts. On November 30, 1968, in the early hours of the morning, a fire broke out at the San Jose Speed and Marine Shop. Investigating officers of the San Jose Police Department discovered that the rear door was unlocked, that all windows were intact, and that the burglar alarm had not sounded. Steven Clausman, one of the owners, informed the police that certain inventory items and $320 in currency were missing from the shop. Arson investigators later determined that flammable liquid had been used to set five separate fires inside the establishment.
The Salinas Police Department later received information that petitioner was in possession of the missing speed equipment. They contacted petitioner and he voluntarily surrendered. After being advised of his constitutional rights, petitioner freely gave a statement to the Salinas police and to arson investigators from San Jose. In this statement petitioner admitted that he had conspired with Clausman to set fire to the shop, that he was to remove some of the inventory and retain it until Clausman had received settlement for his losses, and that he was to receive $1,000 for his part in the affair. Petitioner was booked at the Santa Clara County jail on a charge of arson and released on his own recognizance. Clausman was also arrested on the same charge.
On January 13, 1969, the Santa Clara County Grand Jury returned an indictment against petitioner and Clausman" charging them with arson (§ 448a), arson of insured personal property (§ 450a), and conspiracy to commit said substantive offenses (§ 182, subd. 1). Petitioner was ar*106raigned and again released upon his own recognizance. Both defendants entered pleas of not guilty and the cause was set for trial.
Petitioner subsequently withdrew his plea of not guilty and entered a plea of guilty to the arson count. The court dismissed the other two counts and referred the matter to the probation officer for investigation and report. Petitioner remained at large on his own recognizance. In the meantime he testified as a witness for the prosecution at Clausman’s trial. A jury convicted Clausman on all three counts.
On April 15, 1969, Clausman and petitioner were arraigned for judgment. After considering the probation reports of both men, the trial judge stated that he considered both defendants “as standing in the same and identical shoes before the Court with respect to responsibility for these matters.” The court then ordered that imposition of sentence on each defendant be suspended for a period of three years, and that each defendant be released upon probation on the condition, among others, that each pay a fine of $2,500 plus a penalty assessment of $625 “or in lieu of payment thereof one (1) day in the County Jail for each $10.00 unpaid.”
The deputy public defender informed the court that petitioner because of his financial condition would probably have to serve out his fine, and requested the court to waive the penalty assessment. The judge denied the request, stating that he did not believe that petitioner could be imprisoned for nonpayment of the assessment. Clausman paid his fine and assessment, and was released on the following morning; petitioner, lacking funds with which to make payment, began serving his sentence forthwith at the rate specified in the probation order. On July 24, the deputy public defender again requested the trial judge to waive the penalty assessment; the request was again denied. i
Petitioner complains that his imprisonment is illegal in that he has been deprived of his liberty solely because of his indigency while his codefendant, possessed of funds with which to pay both the fine and assessment, has been released.
Respondent* *3 asserts in his .return that habeas corpus is unavailable to petitioner and that in any event the above-mentioned condition of probation ordering petitioner’s imprisonment4 for nonpayment of fine (a) “is without constitutional infirmity” and (b) is a reasonable one relating to petitioner’s reformation and rehabilitation. In hi's traverse to the return *107petitioner broadens his attack on the probation order, contending that its conditions were unreasonable since they violated his “constitutional rights to due process, equal protection and against excessive fines as provided in the Fifth, Eighth and Fourteenth Amendments to the Constitution of the United States, and Article 1, Sections 6 and 13 of the Constitution of the State of California.” We first consider the availability of the relief sought.
The gist of respondent’s argument is as follows: An appeal lies from an order granting probation following conviction (citing § 1237, subd. 3, as it read prior to the 1968 revision); petitioner did not appeal; as a general rule, habeas corpus cannot serve as a substitute for an appeal (citing In re Dixon (1953) 41 Cal.2d 756, 759 [264 P.2d 513]); and petitioner has urged no special circumstances to warrant an exception to such rule.
We confronted such an argument in In re Black (1967) 66 Cal.2d 881 [59 Cal.Rptr. 429, 428 P.2d 293] where we had this to say: “We referred to such restrictions on the use of the writ in In re Dixon (1953) 41 Cal.2d 756, 759 [264 P.2d 513]: ‘The general rule is that habeas corpus cannot serve as a substitute for an appeal, and, in the absence of special circumstances constituting an excuse for failure to employ that remedy, the writ will not lie where the claimed errors could have been, but were not, raised upon a timely appeal from a judgment of conviction. [Citations.]’ (In accord: In re Shipp (1965) 62 Cal.2d 547, 551-552 [43 Cal.Rptr. 3, 399 P.2d 571]; In re Manchester (1949) 33 Cal.2d 740, 742 [204 P.2d 881]; In re Connor (1940) 16 Cal.2d 701, 705 [108 P.2d 10].) But we made clear in Dixon and in other cases that although a remedy by appeal or other direct attack might have been available, the writ of habeas corpus nevertheless will lie where special circumstances are presented. (In re Newbern (1960) 53 Cal.2d 786, 789-790 [3 Cal.Rptr. 364, 350 P.2d 116]; In re Osslo (1958) 51 Cal.2d 371, 376-377 [334 P.2d 1]; In re Bine (1957) 47 Cal.2d 814, 817-818 [306 P.2d 445]; In re Dixon, supra, In re Seeley (1946) 29 Cal.2d 294, 296 [176 P.2d 24], It has been said that the ‘requirement of exhaustion of the appellate or other remedy ... is merely a discretionary policy governing the exercise of the reviewing court’s jurisdiction to issue the writ.’ (Witkin, Cal. Criminal Procedure (1963) p. 769; see In re Bell (1942) 19 Cal.2d 488, 495 [122 P.2d 22].)” (Id. at pp. 886-887.)
In the instant case petitioner bases his petition for a writ of habeas corpus upon a constitutional question of great magnitude—that he has been deprived of his liberty in violation of rights secured to him by the equal protection clause. This court has held that the presence of a constitutional question of extraordinary importance constitutes special circumstances sufficient to relieve a petitioner from the operation of the above-mentioned *108general rule. (In re Allen (1969) 71 Cal.2d 388, 389 [78 Cal.Rptr. 207, 455 P.2d 143]; In re Bell (1942) 19 Cal.2d 488, 495 [122 P.2d 22]. See also In re Oxidean (1961) 195 Cal.App.2d 814, 817 [16 Cal.Rptr. 193]; Witkin, Cal. Criminal Procedure, § 797, supra, at p. 770.) Thus, as we said in In re Bell, supra, 19 Cal.2d 488, 495, “While a few courts require that all available remedies by appeal be exhausted before habeas corpus can be invoked to test constitutionality [citation], most jurisdictions, including California, do not make the requirement mandatory. . . .” In view of the foregoing we conclude that petitioner has demonstrated that the instant case presents special circumstances within the above-mentioned rule. Accordingly his failure to appeal from the probation order does not preclude our consideration of the constitutional question presented by the facts of this case.
We, therefore, take up petitioner’s main contention that his imprisonment solely because of his financial inability to pay the fine imposed on him as a condition of probation offends the equal protection clause of the Fourteenth Amendment. The essence of this claim is that, while ostensibly applying to both the rich and the poor, actually a sentence to pay a fine, together with a direction that a defendant be imprisoned until the fine is satisfied, gives an advantage to the rich defendant which is in reality denied to the poor one. “The ‘choice’ of paying $100 fine or spending 30 days in jail is really no choice at all to the person who cannot raise $100. The resulting imprisonment is no more or no less than imprisonment for being poor, ...” (Remarks of former Associate Justice Goldberg in Goldberg, Equality and Governmental Action (1964) 39 N.Y.U.L.Rev. 205, 221.) To put it in another way and in the context of the present case, when a fine in the same amount is imposed upon codefendants deemed equally culpable with the added provision for their imprisonment in the event of its nonpayment, an option is given to the rich defendant but denied to the poor one. While the poor man has the “right” to obtain his release by payment of the fine, in actuality the “right” is meaningless to him. It is this difference in the final treatment of each which petitioner attacks.5
We make two preliminary observations. First, we are aware that the practice of ordering imprisonment for nonpayment of fines has been long and well established im Anglo-American law and has prevailed for some time in the courts of most of our states. (Williams v. Illinois (1970) 399 U.S. 235 [26 L.Ed.2d 586, 90 S.Ct. 2018]; Note, Fines, Im-*109prisonment, and the Poor: “Thirty Dollars or Thirty Days” (1969) 57 Cal.L.Rev. 778, 780-787.) Nevertheless, while a factor to be considered, the long-standing recognition of this practice does not foreclose its reassessment in the light of the continued evolution of fundamental precepts of our constitutional system, for “neither the antiquity of a practice nor the fact of steadfast legislative and judicial adherence to it through the centuries insulates it from constitutional attack, . . .” (Williams v. Illinois, supra, 399 U.S. 235, 239 [26 L.Ed.2d 586, 592].) An abiding concern for equality in all areas of today’s society has not spared established practices from exposure under the spotlight of equal protection principles. (See, e.g., Sager, Tight Little Islands: Exclusionary Zoning, Equal Protection, and the Indigent (1969) 21 Stan.L.Rev. 767, 774-780; Note, Developments in the Law—Equal Protection (1969) 82 Harv.L.Rev. 1065, 1067.)
Second, we note that the factual predicate underlying petitioner’s contention in the case at bench is unquestionably true. Respondent does not dispute,6 nor could he, that application of the California statutes here involved necessarily results in different treatment for the rich defendant and for the poor one. “The nature of the penalty actually inflicted by a sentence of ‘$25.00 or 10 days’ depends on the defendant’s financial ability and personal choice. If he chooses, and is able, to pay the fine, he can avoid imprisonment. If he chooses imprisonment, he can avoid the fine. If he cannot pay the fine, he cannot avoid imprisonment.” (Italics added.) (Wildeblood v. United States (1960) 284 F.2d 592, 593 [109 App.D.C. 163, 164], dissenting opinion of Edgerton, J.) The fact that this difference in treatment may be unintended and results from the application of a statute which is fair on its face, does not preclude an attack on equal protection grounds upon the statute as applied. (Griffin v. Illinois (1956) 351 U.S. 12 [100 L.Ed. 891, 76 S.Ct. 585]; Strattman v. Studt (1969) 20 Ohio St.2d 95 [253 N.E.2d 749, 751-752].) We first set forth the standards by which such an attack can be evaluated.
We begin with the fundamental principle of Griffin that justice must be administered to all persons equally. In that case it was held that the state’s failure to provide indigent defendants in a criminal case with a transcript of the trial proceedings at public expense so that- they could obtain adequate appellate review constituted an invidious discrimination in violation of the equal protection clause of the Fourteenth Amendment. The high court declared: “In criminal trials a State can no more discriminate on account of poverty than on account of religion, race, or color. . . . Such a denial [of a free transcript] is a misfit in a country dedicated to affording equal justice to all and special privileges to none in the administration of its criminal *110law. [Fn. omitted.] There can be no equal justice where the kind of trial a man gets depends on the amount of money he has.” (Griffin v. Illinois, supra, 351 U.S. at pp. 17-19 [100 L.Ed. at pp. 898-899], passim.) Decisions following Griffin7 have consistently reaffirmed this fundamental principle of equal justice.
However the equal protection clause does not require “Absolute equality” (Douglas v. California, supra, 372 U.S. 353, 357 [9 L.Ed.2d 811, 814, 83 S.Ct. 814]), is not “a demand that a statute necessarily apply equally to all persons” (Rinaldi v. Yeager (1966) 384 U.S. 305, 309 [16 L.Ed.2d 577, 580, 86 S.Ct. 1497]) and permits a state to “provide for differences so long as the result does not amount to ... an ‘invidious discrimination.’ ” (Douglas v. California, supra, at p. 356 [9 L.Ed.2d at p. 814].) Simply stated the “concept of the equal protection of the laws compels recognition of the proposition that persons similarly situated with respect to the legitimate purpose of the law receive like treatment.” (Purdy & Fitzpatrick v. State of California (1969) 71 Cal.2d 566, 578 [79 Cal.Rptr. 77, 456 P.2d 645].)
The traditional test has been that the “distinction drawn by a challenged statute must bear some rational relationship to a legitimate state end and will be set aside as violative of the Equal Protection Clause only if based on reasons totally unrelated to the pursuit of that goal.” (McDonald v. Board of Election Comrs. (1969) 394 U.S. 802, 809 [22 L.Ed.2d 739, 745-746, 89 S.Ct. 1404].) But a stricter standard has been prescribed in cases involving “suspect classifications” or “fundamental interests.” (Purdy & Fitzpatrick v. State of California, supra, 71 Cal.2d at pp. 578-579.) In Westbrook v. Mihaly (1970) 2 Cal.3d 765, 784-785 [87 Cal.Rptr. 839, 471 P.2d 487], we recently had occasion to epitomize the standards to be applied in evaluating classifications under the equal protection clause: “As this court has previously noted, [fn. omitted] the United States Supreme Court has tended to employ a two-level test in reviewing legislative classifications under the equal protection clause. In the area of economic regulation, the high court has exercised restraint, investing legislation with a presumption of constitutionality and requiring merely that distinctions drawn *111by a challenged statute bear some rational relationship to a conceivable legitimate state purpose. (See McDonald v. Board of Election Comrs. (1969) 394 U.S. 802, 809 [22 L.Ed.2d 739, 745-746, 89 S.Ct. 1404]; McGowan v. Maryland (1961) 366 U.S. 420, 425-426 [6 L.Ed.2d 393, 398-399, 81 S.Ct. 1101].) [Par.] On the other hand, in cases involving ‘suspect classifications’ or touching on ‘fundamental interests,’ [fns. omitted] the court has adopted an attitude of active and critical analysis, subjecting the classification to strict scrutiny. (See Shapiro v. Thompson, supra, 394 U.S. 618, 638 [22 L.Ed.2d 600, 617, 89 S.Ct. 1322]; Sherbert v. Verner (1963) 374 U.S. 398, 406 [10 L.Ed.2d 965, 971-972, 83 S.Ct. 1790]; Skinner v. Oklahoma, supra, 316 U.S. 535, 541 [86 L.Ed. 1655, 1660, 62 S.Ct. 1110]; see also Developments in the Law—Equal Protection (1969) 82 Harv.L.Rev. 1064, 1120-1131.) Under the strict standard applied in such cases, the state bears the burden of establishing not only that it has a compelling interest which justifies the law but that the distinctions drawn by the law are necessary to further its purpose.” (See Castro v. State of California (1970) 2 Cal.3d 223, 234-236 [85 Cal.Rptr. 20, 466 P.2d 244].)
More recently in Williams v. Illinois, supra, 399 U.S. 235 [26 L.Ed.2d 586], the Supreme Court dealt with the equal protection clause in a factual setting very similar to the one now before us. There the defendant, an indigent, was convicted of petty theft and was given the maximum sentence provided by law—one year imprisonment and a $500 fine; he was also taxed $5 in court costs. As permitted by the Illinois statute, the judgment directed that in the event of nonpayment of the fine and costs, the defendant was to remain in jail to “work off” such obligations at the rate of $5 per day. The effect of this was to extend his incarceration for 101 days beyond the maximum period of confinement.
Vacating the judgment and remanding the case for further proceedings, the court said: “Applying the teaching of the Griffin case here, we conclude that an indigent criminal defendant may not be imprisoned in default of payment of a fine beyond the maximum authorized by the statute regulating the substantive offense. [Par.] . . . Here the Illinois statute as applied to Williams works an invidious discrimination solely because he is unable to pay the fine. On its face the statute extends to all defendants an apparently equal opportunity for limiting confinement to the statutory maximum simply by satisfying a money judgment. In fact, this is an illusory choice for Williams or any indigent who, by definition, is without funds. [Fn. omitted.] Since only a convicted person with access to funds can avoid the increased imprisonment the Illinois statute in operative effect exposes only indigents to the risk of imprisonment beyond the statutory maximum. By making the maximum confinement contingent upon one’s ability to pay, the State has *112visited different consequences on two categories of persons since the result is to make incarceration in excess of the statutory maximum applicable only to those without the requisite resources to satisfy the money portion of the judgment. [Fn. omitted.]”8 (Williams v. Illinois, supra, 399 U.S. 235, 241, 242 [26 L.Ed.2d 586, 593, 594].)
We are satisfied that in the case at bench, as in Williams,9 we are presented with an example of discrimination between different groups or classifications of convicted criminal defendants—those who are poor and those who are not—or, to put it another way, of discrimination based upon poverty. We have no doubt therefore that the instant case involves “suspect classifications” which must be reviewed and evaluated under the stricter standards mentioned above. We therefore reject respondent’s contention that the statutes in question as here applied are “without constitutional infirmity” in the light of the equal protection clause. Our inquiry then is whether imprisonment of an indigent convicted defendant for nonpayment of a fine is “necessary to promote a compelling governmental interest, . . .” (Shapiro v. Thompson, supra, 394 U.S. 618, 634 [22 L.Ed.2d 600, 615].)
As we have already pointed out, respondent contends that petitioner’s imprisonment can be justified because (a) it “acts as a method” of enforcing payment of the fine and (b) it “relates to” his reformation and rehabilitation. Somewhat in the manner of the court in Williams, we assume that the state’s interest in the collection of fines and in the reformation and rehabilitation of convicted defendants is “substantial and legitimate.” (Williams v. Illinois, supra, 399 U.S. 235, 238 [26 L.Ed.2d 586, 591].) The crucial question before us is whether the practice of imprisoning indigent convicted defendants for nonpayment of fines is necessary to promote either of these interests.
A number of cases have considered the constitutional validity of the *113practice in question.10 Virtually none of these decisions, however, have analyzed the problem in terms of the relationship between imprisonment of indigents and the state interests sought to be promoted thereby.11 Accordingly, it would serve no worthwhile purpose to review the varying results reached in these decisions or the conflicting rationales employed.12
We first consider whether the practice is necessary to promote the state’s interest in collection of fines. There are two reasons why it is not.
In the first place, it is not clear that imprisonment can serve the end of *114enforcing collection of the fine at all in the instant case. We have no doubt that this practice may properly be used to compel payment of fines in proper cases. (Ex parte Garrison, supra, 193 Cal. 37, 38 and cases there cited; In re Fil Ki (1889) 80 Cal. 201, 203 [22 P. 146]; Ex parte Kelly (1865) 28 Cal. 414, 415. Proper use of imprisonment as a coercive mechanism presupposes an ability to pay and a contumacious offender. In the instant case we deal with the application of the practice to indigents. (See fn. 6, ante.) As applied to indigents we fail to see how either the threat or the actuality of imprisonment can force a man who is without funds, to pay a fine. (Accord: Morris v. Schoonfield, supra, 301 F.Supp. 158, 163, vacated on other grounds (1970) 399 U.S. 508 [26 L.Ed.2d 773, 90 S.Ct. 2232]; Note, 4 Houston L.Rev. (1967) 695, 701.)
In the second place, even if it is assumed that imprisonment of indigents serves the state’s purpose of enforcing collection of fines, it is clear that this particular mechanism for promoting that state interest is not “necessary” in the constitutional sense. In Williams the court held that the particular type of “work-out” sentence there involved was not necessary to promote the state’s legitimate interest because there existed alternative and less-intrusive means whereby the state could further its interest. There Chief Justice Burger said: “The State is not powerless to enforce judgment against those financially unable to pay a fine; . . . [Par.] [there are] numerous alternatives to which the State by legislative enactment—or judges within the scope of their authority—may resort in order to avoid imprisoning an indigent beyond the statutory maximum for involuntary nonpayment of a fine. . . .” (399 U.S. at p. 244 [26 L.Ed.2d at p. 595].) The alternative procedures for collecting fines of which the court spoke in Williams are no less efficacious in the instant case than they were there.13 Because the state has available to it these alternative methods of collecting fines, we cannot conclude that imprisonment of indigents is necessary to promote this state interest.
We turn to consider respondent’s contention that imprisonment is permissible because it serves the state’s interest in the rehabilitation and reformation of indigent offenders. We find it also untenable. Respondent’s *115position is that petitioner’s imprisonment is valid because “the condition of a fine or a reparation, even though petitioner is unable to pay, impresses upon him his responsibility to the county for his criminal behavior. Awareness of the financial price of his conduct, a mere token of the total cost of the criminal prosecution, may encourage him to be a law-abiding citizen, to meet his responsibilities and to satisfy his obligations.”
Although respondent does not explain how the imposition of a fine impresses such values upon an indigent, obviously his position must be that imprisonment for the indigent’s involuntary failure to pay the fine is a related and equally effective means of doing so. It does not follow, however, that the mere equating of the imprisonment of the indigent who cannot pay a fine with the cash payment of the nonindigent who can, to the end of promoting the rehabilitation of both classes of offenders, compels the conclusion that the treatment of the former is constitutionally permissible. What we have said above establishes that there are alternative methods by which the state may enforce collection of fines. These same methods simultaneously promote the state’s interest in rehabilitating the offender and by requiring compliance on the part of an indigent offender with onerous conditions, they serve to make him aware of his responsibility for his criminal conduct and to encourage him to become a law-abiding citizen.
In sum, the state can impress upon indigents their “responsibility6 to the county for [their] criminal behavior” through available alternate procedures. Since the state may thus promote its interest in rehabilitation directly, imprisonment of the indigent offender for nonpayment of bis fine should not be necessary.
In the case before us, the record shows beyond any contradiction that although imposition of sentence was' suspended and petitioner was granted probation, he was unable to pay the fine and penalty assessment fixed by the court as a condition of probation, solely because he was an indigent. Under the court’s order, he incurred imprisonment, not because he refused to comply with these conditions of his probation, but simply because he was unable to do so. Although the court had apparently determined that a proper punishment for his offense did not require incarceration, he was unable to obtain his freedom only because he was poor.
We therefore conclude that petitioner’s imprisonment because of his inability, due solely to his indigency, to pay the fine and penalty assessment imposed upon him as a condition of probation was not necessary to promote the state interests claimed by respondent and constituted an invidious discrimination based on his poverty in violation of the equal protection clause of the Fourteenth Amendment. We further conclude that *116Penal Code sections 1205 and 13521 as applied to petitioner are unconstitutional. As a result execution of the provisions of the probation order here under attack cannot be upheld on the independent bases urged by respondent that said provisions constitute a reasonable condition relating to petitioner’s reformation and rehabilitation. Their inherent constitutional defect is fatal to their serving this function.
We deem it desirable to make the following observations. First, there is no significant difference in the fact that petitioner’s fine and penalty assessment were imposed as a condition of probation in the court’s probation order rather than in a judgment of conviction after denial of probation. We are of the view that the same constitutional principles govern both situations.
Second, we do not hold that the imposition upon an indigent offender of a fine and penalty assessment, either as a sentence or as a condition of probation, constitutes of necessity in all instances a violation of the equal protection clause. Depending upon the circumstances of the particular case and the condition of the individual offender, there are a variety of ways in which the state may fine the indigent offender, as alternatives to imprisonment, without offending the command of equal protection (see fn. 13, ante). What we say is that Penal Code sections 1205 and 1203.1 may not be applied in such a way as to foreclose to the indigent offender the opportunity to obtain his freedom which is implicit in a sentence or probation order providing for payment of a fine. Rather, our holding is simply that an indigent who would pay his fine if he could, must be given an option comparable to an offender who is not indigent. When the indigent offender refuses to avail himself of such alternatives at the inception, or defaults or otherwise fails to meet the conditions of the particular alternative which is offered him without a showing of reasonable excuse, the indigent offender becomes in the eyes of the court exactly the same as the contumacious offender who is not indigent. When either of these conditions obtain the offender’s indigency ceases to be dispositive and he may, consistently with the mandate of the equal protection clause, be relegated to “working out” his fine by imprisonment.
Finally, we point out that nothing in today’s opinion diminishes the wide scope of authority vested in the sentencing judge in the exercise of his powers. (See Williams v. Illinois, supra, 399 U.S. at p. 244 [26 L.Ed.2d at p. 595].) Our holding requires only that an indigent be released when the sentencing judge has found his imprisonment to be unnecessary to serve any public interest (see State v. Lavelle, supra, 54 N.J. 315, 320 [255 A. 2d 223, 226]); we assume that a fine is not imposed on a particular indigent offender with the objective of bringing about his eventual imprison*117ment for its nonpayment for “to do so would be to accomplish indirectly as to an indigent that which cannot be done directly.” (Williams v. Illinois, supra, 399 U.S. at p. 243 [26 L.Ed.2d at p. 595]. See Henderson v. United States (Dist.Col.App. 1963) 189 A.2d 132, 133.) The sentencing judge’s bona fide discretion to impose imprisonment directly in cases where he deems it appropriate is unaffected by today’s decision.
In view of the conclusions which we have reached, it is unnecessary to discuss petitioner’s remaining contentions.
We have decided that the petition for the writ of habeas corpus should be granted only to discharge petitioner from the illegal restraint depicted above, namely his imprisonment resulting from his inability, due to his indigency, to pay the fine and penalty assessment imposed as a condition of probation but not to discharge or relieve him from any other restraint or obligation to which he may be subject by virtue of the Order for Probation entered by the superior court on April 15, 1969. Since petitioner has been impermissibly confined in jail pursuant to the order that court is directed to allow him for the period of his confinement a credit against the amount of his fine and penalty assessment calculated at the rate specified in said Order for Probation and an adequate opportunity, consonant with the views herein expressed, to pay the balance.14 Since that portion of paragraph 7 of the Order for Probation providing for confinement in jail in lieu of payment of the monetary obligations therein specified may be constitutionally carried out in some circumstances, we do not order it stricken, but we direct that execution of the order by the superior court be in accordance with the views herein expressed. Except as hereinabove stated the Order for Probation is not vacated, modified or affected by this opinion.
The writ is granted. Petitioner is discharged from the custody of the sheriff of Santa Clara County.
Peters, J., Tobriner, J., Mosk, J., Burke, J., and Molinari, J.,* concurred.