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.4.00.0100.04314.73
7.3.120.0100.04614.79
7.3.110.0030.05014.98
7.3.100.0100.04315.10
7.3.90.0070.04414.76
7.3.80.0030.03315.11
7.3.70.0030.03314.50
7.3.60.0070.03614.79
7.3.50.0000.03914.79
7.3.40.0030.03114.70
7.3.30.0060.02914.82
7.3.20.0130.02916.51
7.3.10.0000.03116.82
7.3.00.0070.03216.53
7.2.250.0070.05215.01
7.2.240.0060.04515.16
7.2.230.0070.03714.98
7.2.220.0000.05715.17
7.2.210.0030.04414.79
7.2.200.0100.03314.95
7.2.190.0030.04614.71
7.2.180.0040.03915.03
7.2.170.0070.03614.94
7.2.00.0100.03619.29
7.1.330.0030.09915.79
7.1.320.0030.09715.68
7.1.310.0070.10015.99
7.1.300.0030.10615.81
7.1.290.0000.10015.88
7.1.280.0000.09515.95
7.1.270.0030.09515.67
7.1.260.0070.09316.00
7.1.70.0000.03516.88
7.1.60.0100.06519.17
7.1.50.0000.07816.94
7.1.00.0000.06022.28
7.0.200.0260.03614.89
7.0.140.0000.12021.95
7.0.120.0130.09322.20
7.0.110.0030.12322.02
7.0.100.0070.11022.14
7.0.90.0130.06322.06
7.0.80.0000.09322.13
7.0.70.0030.10021.98
7.0.60.0100.11322.07
7.0.50.0030.07322.02
7.0.40.0000.06720.03
7.0.30.0100.10020.15
7.0.20.0000.11720.11
7.0.10.0030.09720.04
7.0.00.0000.12320.00
5.6.280.0030.18021.13
5.6.270.0070.16721.04
5.6.260.0030.19321.00
5.6.250.0070.16720.73
5.6.240.0070.17020.83
5.6.230.0000.19720.80
5.6.220.0000.12320.73
5.6.210.0000.15721.00
5.6.200.0000.15720.79
5.6.190.0000.12020.88
5.6.180.0000.15020.75
5.6.170.0070.11320.80
5.6.160.0070.17320.74
5.6.150.0000.17320.70
5.6.140.0030.14321.01
5.6.130.0030.17021.00
5.6.120.0000.18320.95
5.6.110.0030.18720.95
5.6.100.0030.17320.93
5.6.90.0000.15720.85
5.6.80.0030.15720.42
5.6.70.0030.18320.36
5.6.60.0070.17320.40
5.6.50.0000.16320.41
5.6.40.0000.18720.31
5.6.30.0070.17020.37
5.6.20.0000.17320.38
5.6.10.0100.10320.39
5.6.00.0030.12020.12
5.5.380.0030.11017.53
5.5.370.0000.11317.61
5.5.360.0030.17717.49
5.5.350.0000.16317.65
5.5.340.0030.11717.99
5.5.330.0000.16717.87
5.5.320.0000.13718.10
5.5.310.0030.18017.98
5.5.300.0000.15717.79
5.5.290.0000.11018.13
5.5.280.0030.14017.77
5.5.270.0100.16318.12
5.5.260.0000.16317.85
5.5.250.0070.17317.95
5.5.240.0030.11317.54
5.5.230.0000.16717.54
5.5.220.0070.15017.22
5.5.210.0000.17717.22
5.5.200.0000.16717.46
5.5.190.0100.11317.34
5.5.180.0000.19717.12
5.5.160.0030.16017.51
5.5.150.0070.16017.60
5.5.140.0000.17317.24
5.5.130.0030.17317.19
5.5.120.0000.19317.51
5.5.110.0030.17717.44
5.5.100.0000.12017.26
5.5.90.0000.16717.23
5.5.80.0000.18017.11
5.5.70.0000.13317.25
5.5.60.0000.11717.00
5.5.50.0030.09317.37
5.5.40.0030.11317.36
5.5.30.0030.09017.34
5.5.20.0030.12717.34
5.5.10.0000.09717.08
5.5.00.0030.12317.08
5.4.450.0030.16719.55
5.4.440.0030.13319.29
5.4.430.0030.16719.19
5.4.420.0030.14719.52
5.4.410.0000.20019.07
5.4.400.0070.15318.98
5.4.390.0000.18018.98
5.4.380.0070.16018.98
5.4.370.0130.11018.94
5.4.360.0000.19319.05
5.4.350.0070.16318.87
5.4.340.0100.18018.94
5.4.320.0030.18719.22
5.4.310.0000.13718.89
5.4.300.0070.18319.13
5.4.290.0000.12319.05
5.4.280.0000.16319.20
5.4.270.0100.13018.98
5.4.260.0070.19018.90
5.4.250.0070.11018.95
5.4.240.0070.16019.07
5.4.230.0000.11319.21
5.4.220.0000.13019.04
5.4.210.0000.11019.04
5.4.200.0030.11718.95
5.4.190.0000.09319.18
5.4.180.0000.12019.12
5.4.170.0030.09318.93
5.4.160.0030.10319.21
5.4.150.0000.09718.95
5.4.140.0030.09016.39
5.4.130.0000.10716.28
5.4.120.0000.11716.19
5.4.110.0030.17316.46
5.4.100.0030.11016.31
5.4.90.0000.10016.48
5.4.80.0000.10716.13
5.4.70.0000.12316.07
5.4.60.0030.15716.42
5.4.50.0000.12316.44
5.4.40.0000.11016.35
5.4.30.0030.13016.15
5.4.20.0000.10716.19
5.4.10.0000.12716.32
5.4.00.0030.11015.66
5.3.290.0000.19014.50
5.3.280.0030.13014.44
5.3.270.0070.11714.68
5.3.260.0000.12314.55
5.3.250.0200.11014.68
5.3.240.0030.10314.54
5.3.230.0000.12714.63
5.3.220.0030.12714.49
5.3.210.0070.13314.41
5.3.200.0000.13014.58
5.3.190.0000.13714.44
5.3.180.0000.13014.50
5.3.170.0030.12014.49
5.3.160.0000.12714.62
5.3.150.0000.13014.45
5.3.140.0000.12714.49
5.3.130.0000.12714.62
5.3.120.0000.16014.47
5.3.110.0030.18014.43
5.3.100.0070.16314.10
5.3.90.0030.14713.89
5.3.80.0000.13314.02
5.3.70.0030.15713.95
5.3.60.0000.13013.86
5.3.50.0070.19713.77
5.3.40.0000.15313.73
5.3.30.0030.19013.85
5.3.20.0030.20313.61
5.3.10.0000.12313.48
5.3.00.0070.17013.55
5.2.170.0000.17011.03
5.2.160.0030.17311.08
5.2.150.0030.21311.04
5.2.140.0000.17711.15
5.2.130.0030.15711.00
5.2.120.0000.19311.04
5.2.110.0000.14311.02
5.2.100.0000.14711.02
5.2.90.0000.13711.12
5.2.80.0000.19710.88
5.2.70.0000.20711.00
5.2.60.0030.16710.95
5.2.50.0000.19710.97
5.2.40.0000.18311.05
5.2.30.0030.17310.87
5.2.20.0000.16311.12
5.2.10.0000.14710.93
5.2.00.0000.17310.72
5.1.60.0000.1509.81
5.1.50.0000.1439.92
5.1.40.0000.2079.90
5.1.30.0000.13710.46
5.1.20.0000.16010.34
5.1.10.0070.22310.12
5.1.00.0030.2009.97
5.0.50.0000.3339.48
5.0.40.0000.3309.48
5.0.30.0030.3179.48
5.0.20.0000.3109.48
5.0.10.0000.3679.48
5.0.00.0070.2609.48
4.4.90.0000.2709.48
4.4.80.0000.2679.48
4.4.70.0000.2779.48
4.4.60.0000.3109.48
4.4.50.0000.3079.48
4.4.40.0000.2709.48
4.4.30.0030.2909.48
4.4.20.0000.2879.48
4.4.10.0030.2739.48
4.4.00.0000.3009.48
4.3.110.0030.2679.48
4.3.100.0000.3339.48
4.3.90.0270.2109.48
4.3.80.0000.2679.48
4.3.70.0000.3639.48
4.3.60.0030.2839.48
4.3.50.0000.2709.48
4.3.40.0000.2709.48
4.3.30.0030.2579.48
4.3.20.0000.3179.48
4.3.10.0000.2979.48
4.3.00.0000.3479.48

preferences:
40.39 ms | 401 KiB | 5 Q