3v4l.org

run code in 300+ PHP versions simultaneously
<?php $null = NULL; $empty = ''; $start=microtime(TRUE); for($i=0;$i<1000000000;$i++) { if($empty === '') { } } var_export(microtime(TRUE)-$start); echo "\n"; $start=microtime(TRUE); for($i=0;$i<1000000000;$i++) { if(!isset($null)) { } } var_export(microtime(TRUE)-$start); echo "\n";

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.1.70.0002.50117.09
7.1.60.0032.49817.36
7.1.50.0002.50116.95
7.1.00.0032.49722.27
7.0.200.0032.49816.90
7.0.140.0032.49722.15
7.0.60.0072.49319.86
7.0.50.0102.49017.76
7.0.40.0172.48319.67
7.0.30.0232.47719.95
7.0.20.0302.47019.71
7.0.10.0202.48019.73
7.0.00.0032.49719.80
5.6.280.0032.49720.78
5.6.210.0102.49020.54
5.6.200.0102.49018.03
5.6.190.0032.49720.29
5.6.180.0272.47320.16
5.6.170.0202.48020.09
5.6.160.0072.49320.27
5.6.150.0072.49318.07
5.6.140.0002.50018.16
5.6.130.0102.49018.15
5.6.120.0072.49321.14
5.6.110.0032.49721.04
5.6.100.0072.49321.04
5.6.90.0072.49320.98
5.6.80.0102.49020.40
5.6.70.4372.06320.27
5.5.350.0072.49320.29
5.5.340.0032.49717.94
5.5.330.0072.49320.13
5.5.320.0402.46020.06
5.5.310.0202.48020.01
5.5.300.0102.49017.96
5.5.290.0102.49017.87
5.5.280.0102.49020.68
5.5.270.0072.49320.79
5.5.260.0032.49720.93
5.5.250.0032.49720.58
5.5.240.0072.49320.35
5.4.450.0202.47719.38
5.4.440.2102.28719.51
5.4.430.0172.48019.49
5.4.420.0172.48019.07
5.4.410.0132.48319.21
5.4.400.0202.47718.71
5.4.390.1872.31018.96
5.4.380.0302.46718.96
5.4.370.0232.47319.06
5.4.360.0272.47019.15
5.4.350.0272.47019.06
5.4.340.0232.47318.96
5.4.320.0272.47019.18
5.4.310.0372.46018.86
5.4.300.0602.43718.99
5.4.290.0272.47319.11
5.4.280.0472.45018.99
5.4.270.0472.45018.75
5.4.260.0402.45718.96
5.4.250.0372.46019.01
5.4.240.0132.48318.98
5.4.230.0232.47318.97
5.4.220.0272.47318.96
5.4.210.0332.46318.82
5.4.200.0202.48018.74
5.4.190.0302.46718.86
5.4.180.0432.45318.95
5.4.170.0372.46018.98
5.4.160.0302.46719.12
5.4.150.3372.16018.72
5.4.140.4272.07016.34
5.4.130.0232.47316.39
5.4.120.0332.46316.27
5.4.110.0172.48016.20
5.4.100.0172.48016.42
5.4.90.0172.48016.40
5.4.80.0002.49716.25
5.4.70.0002.49716.18
5.4.60.0072.49016.37
5.4.50.0032.49316.37
5.4.40.0032.49316.34
5.4.30.0232.47316.32
5.4.20.0302.46716.24
5.4.10.2332.26316.39
5.4.00.4402.05715.91
5.3.290.2732.22315.82
5.3.280.3202.17715.83
5.3.270.4132.08315.84
5.3.260.4172.06714.28
5.3.250.1832.31314.42
5.3.240.0732.42714.50
5.3.230.0332.46314.28
5.3.220.3772.12014.28
5.3.210.0402.45714.34
5.3.200.0332.46714.36
5.3.190.0332.45714.28
5.3.180.0302.46714.35
5.3.170.0032.49314.35
5.3.160.0472.45014.34
5.3.150.0332.46314.24
5.3.140.0572.44014.40
5.3.130.0302.46714.34
5.3.120.0472.45014.35
5.3.110.0302.46714.21
5.3.100.2272.27013.82
5.3.90.0402.45713.83
5.3.80.0332.46313.64
5.3.70.0332.46313.73

preferences:
28.9 ms | 400 KiB | 5 Q