3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_time_limit(0); $length=3; $arr_u = array(); $arr_t = array(); $charset=sprintf('%s', implode('',array_merge(range('0', '9'),range('a', 'f')))); for($i=0;$i<strlen($charset);$i++) $a[]=$charset{$i}; for($i=0,$c="",$d="chk(";$i<$length;$i++){ $c.="foreach(\$a as \$b[$i])"; $d.="\$b[$i]."; } eval($c.$d."\"\n\");"); function chk($str){ array_push($arr_u,"%u0$str"); } for($i=0; $i<52; $i++){ array_push($arr_t,$arr_u[rand(0000,count($arr_u))]); unset($arr_u); print(implode("",$arr_t)); }

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)
7.2.100.0680.00714.56
7.2.90.0920.01014.63
7.2.80.0700.00314.68
7.2.70.0610.00615.09
7.2.60.0680.01015.04
7.2.50.0710.00615.10
7.2.40.0560.00315.00
7.2.30.0840.00314.91
7.2.20.0820.00914.97
7.2.10.0600.01315.06
7.2.00.0560.01014.76
7.1.220.0810.00713.93
7.1.210.0840.00913.46
7.1.200.0800.00313.63
7.1.190.0760.00714.20
7.1.180.0610.00313.89
7.1.170.0610.00914.12
7.1.160.0570.00714.05
7.1.150.0550.00714.00
7.1.140.0650.00713.98
7.1.130.0580.01113.85
7.1.120.0230.01313.97
7.1.110.0710.00413.94
7.1.100.0630.00613.84
7.1.90.0520.00314.07
7.1.80.0540.01313.98
7.1.70.0540.00713.91
7.1.60.1020.01032.12
7.1.50.0810.00331.94
7.1.40.1050.01032.02
7.1.30.0930.00632.04
7.1.20.1100.01932.10
7.1.10.0380.01113.99
7.1.00.0720.00013.91
7.0.310.0670.00313.69
7.0.300.0700.00713.56
7.0.290.0780.00313.39
7.0.280.0790.00713.85
7.0.270.0870.00613.61
7.0.260.0680.01013.58
7.0.250.0450.01513.69
7.0.240.0580.01213.50
7.0.230.0880.00713.46
7.0.220.0760.00713.70
7.0.210.0660.00613.81
7.0.200.0550.00613.49
7.0.190.0790.00713.84
7.0.180.0740.00613.59
7.0.170.0170.00613.94
7.0.160.0620.00413.55
7.0.150.0490.00313.56
7.0.140.0810.00913.17
7.0.130.0080.01213.33
7.0.120.0650.00613.45
7.0.110.1360.00713.52
7.0.100.0800.01313.70
7.0.90.0750.00313.50
7.0.80.0630.01013.54
7.0.70.0600.00613.49
7.0.60.0870.00513.34
7.0.50.0660.00313.52
7.0.40.0160.01613.82
7.0.30.0740.00413.90
7.0.20.0440.00013.63
7.0.10.0490.00613.86
7.0.00.0590.00313.57
5.6.380.0100.01014.39
5.6.370.0090.00314.00
5.6.360.0070.01014.67
5.6.350.0130.01614.66
5.6.340.0190.00614.80
5.6.330.0170.00714.51
5.6.320.0120.01514.73
5.6.310.0250.00314.47
5.6.300.0070.01713.93
5.6.290.0080.01313.93
5.6.280.0120.00614.14
5.6.270.0080.00814.37
5.6.260.0150.00514.34
5.6.250.0150.00814.22
5.6.240.0130.00814.36
5.6.230.0070.00914.38
5.6.220.0120.00814.45
5.6.210.0130.00614.36
5.6.200.0140.00214.41
5.6.190.0140.00914.56
5.6.180.0110.01114.51
5.6.170.0150.00314.64
5.6.160.0110.01014.39
5.6.150.0130.00414.39
5.6.140.0110.00714.49
5.6.130.0150.00014.36
5.6.120.0120.00814.25
5.6.110.0090.01314.43
5.6.100.0030.01814.29
5.6.90.0150.00014.33
5.6.80.0140.00014.15
5.6.70.0070.01114.09
5.6.60.0070.01014.24
5.6.50.0180.00514.47
5.6.40.0160.00314.18
5.6.30.0080.01114.13
5.6.20.0110.00514.09
5.6.10.0100.00514.20
5.6.00.0070.01114.42
5.5.380.0100.00512.43
5.5.370.0060.01012.43
5.5.360.0040.00912.43
5.5.350.0110.00712.43
5.5.340.0090.00412.43
5.5.330.0090.00912.43
5.5.320.0180.00012.43
5.5.310.0050.00912.43
5.5.300.0110.00312.43
5.5.290.0030.00712.43
5.5.280.0060.00612.43
5.5.270.0170.00312.43
5.5.260.0100.00512.43
5.5.250.0060.00312.43
5.5.240.0080.00312.43
5.5.230.0070.00312.43
5.5.220.0080.00512.43
5.5.210.0130.00012.43
5.5.200.0040.01112.43
5.5.190.0100.00312.43
5.5.180.0110.00512.43
5.5.170.0120.00614.40
5.5.160.0120.00312.43
5.5.150.0030.01412.43
5.5.140.0100.00312.43
5.5.130.0050.01012.43
5.5.120.0080.00812.43
5.5.110.0120.00712.43
5.5.100.0050.01112.43
5.5.90.0140.00512.43
5.4.450.0110.00412.43
5.4.440.0060.00712.43
5.4.430.0120.00012.43
5.4.420.0100.00512.43
5.4.410.0130.00012.43
5.4.400.0020.01012.43
5.4.390.0000.01312.43
5.4.380.0050.00912.43
5.4.370.0060.00612.43
5.4.360.0110.00712.43
5.4.350.0070.01112.43
5.4.340.0150.00012.43
5.4.330.0090.00412.43
5.4.320.0100.00512.43
5.4.310.0070.00712.43
5.4.300.0100.00712.43
5.4.290.0080.00512.43
5.4.280.0100.00812.43
5.4.270.0110.00712.43
5.4.260.0080.00712.43
5.4.250.0050.01112.43
5.3.290.0040.00912.43

preferences:
36.38 ms | 400 KiB | 5 Q