3v4l.org

run code in 300+ PHP versions simultaneously
<?php function recGerRating(&$rating, &$html=null){ if($rating == 0 ) return $html; if($rating < 1){ $html .='<span class="fa fa-star-half-empty"></span>'; $rating-= 0.5; return $html; }else{ $html .= '<span class="fa fa-star"></span>'; $rating-= 1; return recGerRating($rating, $html); } } $r = 0.5; echo recGerRating($r);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.4.140.0120.01317.45
8.4.130.0130.00618.89
8.4.120.0080.01224.04
8.4.110.0040.00520.45
8.4.100.0110.01017.71
8.4.90.0070.00217.86
8.4.80.0040.00520.38
8.4.70.0130.00718.05
8.4.60.0130.00718.78
8.4.50.0090.01218.64
8.4.40.0130.00717.87
8.4.30.0070.01420.41
8.4.20.0160.00020.34
8.4.10.0060.00317.77
8.3.270.0130.00616.56
8.3.260.0110.00916.52
8.3.250.0110.00818.86
8.3.240.0030.00617.25
8.3.230.0130.00516.61
8.3.220.0150.00419.09
8.3.210.0060.01116.88
8.3.200.0030.00516.49
8.3.190.0100.00719.13
8.3.180.0120.00816.73
8.3.170.0150.00320.58
8.3.160.0110.00717.05
8.3.150.0070.00717.43
8.3.140.0070.01116.78
8.3.130.0050.00516.84
8.3.120.0040.01520.67
8.3.110.0030.00716.50
8.3.100.0100.00018.43
8.3.90.0090.00016.62
8.3.80.0060.00318.24
8.3.70.0030.01316.50
8.3.60.0090.00916.75
8.3.50.0130.01021.22
8.3.40.0090.01318.76
8.3.30.0140.00018.74
8.3.20.0050.00321.71
8.3.10.0070.00020.21
8.3.00.0110.00423.67
8.2.290.0110.00822.22
8.2.280.0100.00818.48
8.2.270.0000.01818.76
8.2.260.0100.00716.68
8.2.250.0080.00018.49
8.2.240.0080.00017.36
8.2.230.0070.00320.94
8.2.220.0060.00324.06
8.2.210.0030.01026.77
8.2.200.0100.00018.04
8.2.190.0030.01216.63
8.2.180.0090.00618.39
8.2.170.0110.00418.91
8.2.160.0080.01222.96
8.2.150.0030.00625.66
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0080.00026.16
8.2.110.0060.00322.28
8.2.100.0110.00017.91
8.2.90.0060.00317.91
8.2.80.0030.00518.92
8.2.70.0040.00417.75
8.2.60.0040.00417.63
8.2.50.0040.00417.63
8.2.40.0030.00619.47
8.2.30.0000.00819.20
8.2.20.0050.00318.18
8.2.10.0030.00819.19
8.2.00.0050.00219.28
8.1.330.0060.00221.85
8.1.320.0120.00716.20
8.1.310.0060.01218.32
8.1.300.0160.00016.79
8.1.290.0000.00918.88
8.1.280.0040.01125.92
8.1.270.0060.00322.04
8.1.260.0030.00626.35
8.1.250.0080.00028.09
8.1.240.0060.00323.92
8.1.230.0110.00022.68
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0000.00817.22
8.1.180.0080.00018.10
8.1.170.0040.00417.62
8.1.160.0000.00920.67
8.1.150.0080.00018.99
8.1.140.0030.00320.84
8.1.130.0040.00420.10
8.1.120.0040.00417.47
8.1.110.0000.00817.48
8.1.100.0040.00417.46
8.1.90.0040.00417.36
8.1.80.0080.00017.34
8.1.70.0000.00717.45
8.1.60.0030.00617.49
8.1.50.0000.00717.40
8.1.40.0060.00317.46
8.1.30.0000.00917.49
8.1.20.0040.00417.51
8.1.10.0000.00717.52
8.1.00.0040.00417.45
8.0.300.0090.00022.14
8.0.290.0020.00516.75
8.0.280.0000.00718.38
8.0.270.0060.00316.74
8.0.260.0030.00320.07
8.0.250.0060.00016.84
8.0.240.0060.00316.98
8.0.230.0030.00317.00
8.0.220.0060.00316.96
8.0.210.0030.00316.93
8.0.200.0030.00316.97
8.0.190.0050.00316.87
8.0.180.0050.00316.91
8.0.170.0040.00416.80
8.0.160.0000.00816.88
8.0.150.0070.00016.68
8.0.140.0040.00416.87
8.0.130.0030.00313.30
8.0.120.0000.00716.79
8.0.110.0000.00716.91
8.0.100.0030.00516.79
8.0.90.0070.00016.79
8.0.80.0060.01316.93
8.0.70.0000.00716.96
8.0.60.0040.00416.84
8.0.50.0040.00416.85
8.0.30.0090.00616.96
8.0.20.0210.00617.22
8.0.10.0000.00716.96
8.0.00.0040.01416.98
7.4.330.0030.00315.55
7.4.320.0000.00716.37
7.4.300.0000.00616.43
7.4.290.0000.00816.58
7.4.280.0040.00416.59
7.4.270.0000.00916.62
7.4.260.0000.00816.60
7.4.250.0020.00516.33
7.4.240.0020.00516.61
7.4.230.0040.00416.30
7.4.220.0000.00716.25
7.4.210.0070.00916.59
7.4.200.0030.00316.35
7.4.140.0120.00917.86
7.4.130.0130.00316.46
7.4.120.0160.00716.56
7.4.110.0100.00716.60
7.4.100.0060.01216.45
7.4.90.0140.00316.57
7.4.80.0070.01019.39
7.4.70.0100.00616.60
7.4.60.0030.01516.39
7.4.50.0070.01016.52
7.4.40.0060.00916.45
7.4.00.0040.00814.91
7.3.330.0060.00013.30
7.3.320.0050.00013.34
7.3.310.0000.00716.15
7.3.300.0030.00316.32
7.3.290.0000.00616.31
7.3.260.0150.00616.45
7.3.240.0080.01016.40
7.3.230.0110.01016.65
7.3.210.0030.01416.47
7.3.200.0030.01316.45
7.3.190.0060.01116.30
7.3.180.0110.00716.25
7.3.170.0120.00616.68
7.3.160.0030.01316.54
7.3.70.0090.00614.65
7.3.60.0070.00414.78
7.3.50.0030.01014.58
7.3.40.0050.00514.87
7.3.30.0090.00614.60
7.3.20.0080.00316.61
7.3.10.0130.00316.71
7.3.00.0070.00716.66
7.2.330.0100.00716.80
7.2.320.0120.01216.21
7.2.310.0170.00016.60
7.2.300.0080.01216.59
7.2.290.0110.00916.69
7.2.200.0070.01014.78
7.2.190.0070.00715.04
7.2.180.0060.00615.01
7.2.170.0030.01014.96
7.2.160.0080.00815.12
7.2.150.0030.00916.77
7.2.140.0060.00616.81
7.2.130.0090.00316.79
7.2.120.0040.01117.01
7.2.110.0160.00016.96
7.2.100.0070.00716.71
7.2.90.0080.00816.95
7.2.80.0080.00416.86
7.2.70.0060.01017.03
7.2.60.0180.00316.80
7.2.50.0030.00916.80
7.2.40.0100.00617.08
7.2.30.0080.00516.94
7.2.20.0100.00716.74
7.2.10.0060.01016.99
7.2.00.0070.00716.88
7.1.300.0080.00515.64
7.1.290.0050.00515.53
7.1.280.0070.01015.71
7.1.270.0030.01015.54
7.1.260.0050.00515.72
7.1.250.0090.00615.75

preferences:
173.2 ms | 403 KiB | 5 Q