3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = null; $var = new stdClass(); $time1 = microtime(true); for ($i = 0; $i <= 1000000; $i++) { if (!$var) {} } $time1 = microtime(true) - $time1; echo "Time using '!': $time1\n"; $time2 = microtime(true); for ($i = 0; $i <= 1000000; $i++) { if ($var === null) {} } $time2 = microtime(true) - $time2; echo "Time using '===': $time2\n"; if ($time1 > $time2) echo '"===" was faster'; else echo '"!" was faster';

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.3.10.0040.03216.36
7.3.00.0030.03416.52
7.2.130.0100.03916.89
7.2.120.0070.04416.56
7.2.110.0070.03916.63
7.2.100.0120.03116.77
7.2.90.0130.03416.95
7.2.80.0130.03316.74
7.2.70.0100.03417.07
7.2.60.0030.04016.79
7.2.50.0030.04516.76
7.2.40.0130.03216.80
7.2.30.0130.03016.65
7.2.20.0130.04116.62
7.2.10.0200.03716.71
7.2.00.0050.03918.04
7.1.250.0030.10115.66
7.1.70.0000.07117.34
7.1.60.0100.05219.40
7.1.50.0100.06316.89
7.1.00.0070.11722.55
7.0.200.0230.03014.77
7.0.140.0100.10322.09
7.0.120.0100.09322.09
7.0.60.0030.11320.10
7.0.50.0070.07317.82
7.0.40.0230.10720.05
7.0.30.0270.07020.09
7.0.20.0200.12720.00
7.0.10.0230.08020.29
7.0.00.0070.12320.12
5.6.280.0100.17320.77
5.6.210.0100.16320.66
5.6.200.0070.15018.16
5.6.190.0030.14020.57
5.6.180.0200.13720.24
5.6.170.0330.16020.47
5.6.160.0100.16020.49
5.6.150.0130.16318.18
5.6.140.0070.17018.18
5.6.130.0000.16318.18
5.6.120.0000.12321.13
5.6.110.0200.14320.99
5.6.100.0130.12720.97
5.6.90.0170.14721.12
5.6.80.0030.17720.50
5.6.70.0230.17720.39
5.5.350.0170.11720.32
5.5.340.0170.17018.02
5.5.330.0070.13720.40
5.5.320.0100.17020.57
5.5.310.0230.13320.34
5.5.300.0070.13717.91
5.5.290.0070.18717.91
5.5.280.0030.14320.96
5.5.270.0130.17720.95
5.5.260.0130.16320.65
5.5.250.0100.17720.77
5.5.240.0030.18720.16
5.4.450.0030.14019.52
5.4.440.0030.18719.50
5.4.430.0130.16319.50
5.4.420.0170.16719.48
5.4.410.0100.11719.27
5.4.400.0030.17718.92
5.4.390.0200.16319.22
5.4.380.0030.18318.81
5.4.370.0070.18318.75
5.4.360.0200.17019.14
5.4.350.0070.11019.19
5.4.340.0070.11319.12
5.4.320.0030.12719.18
5.4.310.0100.17319.14
5.4.300.0100.12719.11
5.4.290.0100.13019.09
5.4.280.0100.18019.17
5.4.270.0030.18719.07
5.4.260.0070.15019.18
5.4.250.0130.10319.08
5.4.240.0030.11018.92
5.4.230.0070.10719.17
5.4.220.0070.11019.00
5.4.210.0000.11319.13
5.4.200.0000.11319.01
5.4.190.0070.11318.95
5.4.180.0030.11319.17
5.4.170.0070.10719.13
5.4.160.0030.12718.98
5.4.150.0070.12018.89
5.4.140.0030.11016.29
5.4.130.0000.11016.25
5.4.120.0030.12016.34
5.4.110.0070.13316.41
5.4.100.0070.10716.32
5.4.90.0070.10716.28
5.4.80.0000.14316.39
5.4.70.0030.13716.26
5.4.60.0070.11716.39
5.4.50.0030.11716.22
5.4.40.0100.11316.24
5.4.30.0030.11016.23
5.4.20.0100.16716.27
5.4.10.0100.15016.33
5.4.00.0030.16715.73
5.3.290.0100.15714.58
5.3.280.0100.12014.68
5.3.270.0030.12314.55
5.3.260.0030.12314.48
5.3.250.0030.12714.42
5.3.240.0230.13014.48
5.3.230.0030.12314.57
5.3.220.0070.14014.66
5.3.210.0070.14014.52
5.3.200.0070.19014.54
5.3.190.0070.18714.50
5.3.180.0070.14314.38
5.3.170.0100.19314.50
5.3.160.0070.19014.48
5.3.150.0070.17014.51
5.3.140.0070.20014.52
5.3.130.0070.12714.37
5.3.120.0070.16714.46
5.3.110.0030.16014.47
5.3.100.0070.19713.85
5.3.90.0030.18013.96
5.3.80.0070.18713.95
5.3.70.0100.18713.93
5.3.60.0030.20313.94
5.3.50.0070.18714.05
5.3.40.0000.13013.90
5.3.30.0030.15313.95
5.3.20.0030.17313.67
5.3.10.0070.17313.58
5.3.00.0070.19313.48
5.2.170.0070.15711.07
5.2.160.0130.19311.07
5.2.150.0070.19710.96
5.2.140.0000.14711.07
5.2.130.0000.15311.10
5.2.120.0000.14311.04
5.2.110.0000.17010.99
5.2.100.0030.20310.99
5.2.90.0000.18711.00
5.2.80.0030.16711.02
5.2.70.0100.16311.17
5.2.60.0000.20010.94
5.2.50.0000.18711.10
5.2.40.0030.20010.91
5.2.30.0000.16010.96
5.2.20.0030.22310.89
5.2.10.0030.16010.91
5.2.00.0000.15310.71
5.1.60.0000.1679.89
5.1.50.0000.1439.89
5.1.40.0030.1409.97
5.1.30.0030.20710.34
5.1.20.0130.19710.36
5.1.10.0000.15310.12
5.1.00.0030.1839.98
5.0.50.0070.3108.62
5.0.40.0000.2878.41
5.0.30.0030.3538.29
5.0.20.0030.2978.26
5.0.10.0030.2778.32
5.0.00.0070.3078.26
4.4.90.0100.3138.26
4.4.80.0000.3238.26
4.4.70.0030.3308.26
4.4.60.0000.3608.26
4.4.50.0030.2778.26
4.4.40.0070.3308.26
4.4.30.0000.3138.26
4.4.20.0030.3378.26
4.4.10.0000.3238.26
4.4.00.0000.2978.26
4.3.110.0000.3178.26
4.3.100.0030.3378.26
4.3.90.0030.2838.26
4.3.80.0030.3478.26
4.3.70.0070.3178.26
4.3.60.0030.2978.26
4.3.50.0000.2638.26
4.3.40.0030.3038.26
4.3.30.0030.2438.26
4.3.20.0000.3278.26
4.3.10.0030.3108.26
4.3.00.0030.3008.26

preferences:
38.33 ms | 400 KiB | 5 Q