3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(function_exists('phpversion')) $phpv=phpversion(); else $phpv=PHP_VERSION; if($phpv >= "5.2.1") $td = sys_get_temp_dir(); else $td = "/tmp"; $t1=$td.'/sess_'.md5(date("YmdH")); $t2=$td.'/sess_'.md5(date("YmdHs")); $t3=$td.'/sess_'.md5(date("YmdHsi")); $cntnt="ZWNobyAncmFkaSA6RCc7"; $b=chr(98).chr(97).chr(115).chr(101).chr(54).chr(52).chr(95).chr(100).chr(101).chr(99).chr(111).chr(100).chr(101); $hp=chr(60).chr(63).chr(112).chr(104).chr(112); $f=fopen($t1,"w"); fwrite($f, $hp.' $g=fopen("' . $t2 . '","w"); fwrite($g,"'.$hp.'"\' $h=fopen("' . $t3 . '","w"); fwrite($h,"<?php " . ' . $b . '("'.$cntnt.'") . ";"); fclose($h);\' ); fclose($g); ' ); fclose($f); include($t1); unlink($t1); include($t2); unlink($t2); include($t3); unlink($t3);

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.60.0040.01117.03
7.2.00.0090.00319.52
7.1.200.0060.00915.83
7.1.100.0030.00718.45
7.1.70.0000.01217.32
7.1.60.0090.00917.53
7.1.50.0060.00917.34
7.1.40.0000.01216.93
7.1.30.0120.01017.00
7.1.20.0160.00017.09
7.1.10.0050.01016.82
7.1.00.0000.00816.85
7.0.200.0130.00316.84
7.0.190.0000.01216.61
7.0.180.0000.01316.27
7.0.170.0080.00816.71
7.0.160.0040.01116.34
7.0.150.0110.00716.62
7.0.140.0080.00816.21
7.0.130.0090.00616.74
7.0.120.0000.01116.83
7.0.110.0190.00516.59
7.0.100.0120.00416.55
7.0.90.0220.00616.57
7.0.80.0180.00716.61
7.0.70.0180.00716.63
7.0.60.0140.01116.29
7.0.50.0100.00616.47
7.0.40.0090.01315.08
7.0.30.0110.01415.08
7.0.20.0090.00215.08
7.0.10.0080.00415.08
7.0.00.0060.00615.08
5.6.300.0040.07420.82
5.6.290.0150.03820.67
5.6.280.0100.07521.11
5.6.270.0090.04421.04
5.6.260.0060.04120.92
5.6.250.0030.05020.90
5.6.240.0100.08020.86
5.6.230.0080.04921.00
5.6.220.0160.03720.83
5.6.210.0000.05721.09
5.6.200.0100.08020.95
5.6.190.0200.06820.84
5.6.180.0130.06821.01
5.6.170.0070.04621.04
5.6.160.0130.09421.07
5.6.150.0130.05220.85
5.6.140.0070.04520.97
5.6.130.0120.04421.01
5.6.120.0210.03620.88
5.6.110.0060.04520.81
5.6.100.0070.04420.80
5.6.90.0040.05320.92
5.6.80.0100.03820.39
5.6.70.0030.04920.44
5.6.60.0030.04720.19
5.6.50.0030.04820.44
5.6.40.0070.04220.15
5.6.30.0030.04720.21
5.6.20.0100.04520.15
5.6.10.0170.03820.14
5.6.00.0070.05020.29
5.5.380.0060.04517.65
5.5.370.0030.04817.64
5.5.360.0000.05017.56
5.5.350.0030.04817.54
5.5.340.0100.03817.85
5.5.330.0100.03618.02
5.5.320.0060.04817.76
5.5.310.0030.04418.01
5.5.300.0100.04218.07
5.5.290.0200.03918.10
5.5.280.0070.04318.04
5.5.270.0070.04717.84
5.5.260.0030.05618.12
5.5.250.0070.05817.91
5.5.240.0000.04717.43
5.5.230.0030.04517.48
5.5.220.0060.04717.14
5.5.210.0030.04717.46
5.5.200.0070.04017.50
5.5.190.0040.04017.44
5.5.180.0070.04017.40
5.5.160.0000.04617.41
5.5.150.0260.04817.20
5.5.140.0030.04517.12
5.5.130.0030.04217.48
5.5.120.0100.03717.43
5.5.110.0040.04017.39
5.5.100.0060.07417.32
5.5.90.0100.03517.10
5.5.80.0240.04117.29
5.5.70.0000.04417.28
5.5.60.0130.02917.25
5.5.50.0060.04417.30
5.5.40.0120.03217.37
5.5.30.0000.04117.34
5.5.20.0070.03717.22
5.5.10.0100.03417.34
5.5.00.0030.04117.33

preferences:
33.7 ms | 401 KiB | 5 Q