3v4l.org

run code in 300+ PHP versions simultaneously
<?php $null = NULL; $empty = ''; $start=microtime(TRUE); for($i=0;$i<100000000;$i++) { if($empty === '') { } } var_export(microtime(TRUE)-$start); echo "\n"; $start=microtime(TRUE); for($i=0;$i<100000000;$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.2.00.0032.49819.40
7.1.70.0002.50116.78
7.1.60.0072.49519.70
7.1.50.0232.48034.92
7.1.00.0032.49722.26
7.0.200.0032.49816.71
7.0.140.0132.48722.08
7.0.60.0072.49319.98
7.0.50.0102.49017.74
7.0.40.0032.49719.83
7.0.30.0202.48019.76
7.0.20.0272.47319.72
7.0.10.0232.47719.75
7.0.00.0032.49719.74
5.6.280.0072.49321.13
5.6.210.0102.49020.50
5.6.200.0032.49718.12
5.6.190.0072.49320.22
5.6.180.0302.47020.29
5.6.170.0272.47320.35
5.6.160.0002.50020.38
5.6.150.0102.49018.15
5.6.140.0102.49018.07
5.6.130.0102.49018.02
5.6.120.0102.49021.06
5.6.110.0202.48020.88
5.6.100.0072.49320.99
5.6.90.0032.49720.96
5.6.80.0072.49320.37
5.6.70.4502.05020.41
5.5.350.0032.49720.41
5.5.340.0102.49017.89
5.5.330.0132.48720.29
5.5.320.0372.46320.22
5.5.310.0202.48020.19
5.5.300.0002.50017.88
5.5.290.0102.49017.96
5.5.280.0032.49720.96
5.5.270.0032.49720.79
5.5.260.0102.49020.79
5.5.250.0032.49720.68
5.5.240.0072.49320.12
5.4.450.0272.47019.38
5.4.440.0072.49019.49
5.4.430.0132.48319.29
5.4.420.0402.45719.31
5.4.410.0172.48019.38
5.4.400.0272.47018.71
5.4.390.1232.37318.86
5.4.380.0172.48018.86
5.4.370.0232.47318.96
5.4.360.0272.47019.02
5.4.350.0202.47718.96
5.4.340.0202.47719.18
5.4.320.0232.47319.18
5.4.310.0502.44719.18
5.4.300.0341.96012.46
5.4.290.0381.95912.45
5.4.280.0471.96312.35
5.4.270.0571.95112.35
5.4.260.0131.99212.35
5.4.250.0081.98812.35
5.4.240.0331.96312.35
5.4.230.0191.97212.34
5.4.220.0091.99112.34
5.4.210.0091.98912.34
5.4.200.0181.98812.34
5.4.190.0101.99812.34
5.4.180.0242.03212.34
5.4.170.0251.98412.35
5.4.160.0131.98612.34
5.4.150.0111.98112.34
5.4.140.0091.98612.03
5.4.130.0091.98912.01
5.4.120.0191.97811.97
5.4.110.0131.98611.96
5.4.100.0141.99011.97
5.4.90.0241.97711.96
5.4.80.0131.99611.96
5.4.70.0091.99511.96
5.4.60.0092.03311.96
5.4.50.0122.00311.96
5.4.40.0071.99611.95
5.4.30.0191.98711.95
5.4.20.0201.99411.95
5.4.10.0171.98511.95
5.4.00.0291.97311.44
5.3.290.4272.07015.82
5.3.280.0181.98212.71
5.3.270.0071.99312.72
5.3.260.0121.98512.72
5.3.250.0091.99012.72
5.3.240.0271.97612.72
5.3.230.0111.98912.71
5.3.220.0121.98712.68
5.3.210.0161.98412.68
5.3.200.0061.99512.68
5.3.190.0081.98912.68
5.3.180.0171.98012.67
5.3.170.0181.94812.67
5.3.160.0141.45412.67
5.3.150.0432.43014.46
5.3.140.0402.45714.34
5.3.130.0472.45014.36
5.3.120.0472.45014.25
5.3.110.0472.45014.25
5.3.100.3872.11013.70
5.3.90.0472.45013.70
5.3.80.0472.45013.65
5.3.70.0302.46713.65

preferences:
36.83 ms | 400 KiB | 5 Q