3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo; $start = microtime(true); for ($i=0;$i<10000;$i++) { $a = is_null($i); } var_dump(microtime(true) - $start); $start = microtime(true); for ($i=0;$i<10000;$i++) { $a = null === $i; } var_dump(microtime(true) - $start);

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)
8.0.110.0000.00816.73
8.0.100.0000.00816.67
8.0.90.0040.00416.68
8.0.80.0090.00616.82
8.0.70.0030.00516.71
8.0.60.0000.00816.65
8.0.50.0000.00816.84
8.0.30.0110.00917.18
8.0.20.0110.00917.40
8.0.10.0000.00817.01
8.0.00.0090.01016.64
7.4.240.0040.00416.58
7.4.230.0000.00716.29
7.4.220.0120.00616.36
7.4.210.0090.00616.54
7.4.200.0040.00416.40
7.4.160.0070.01016.46
7.4.150.0140.00617.40
7.4.140.0100.01017.86
7.4.130.0110.01016.56
7.4.120.0080.01216.48
7.4.110.0030.01516.47
7.4.100.0070.01616.41
7.4.90.0080.01116.41
7.4.80.0100.01019.39
7.4.70.0030.01416.52
7.4.60.0120.00416.35
7.4.50.0000.01116.64
7.4.40.0160.00316.41
7.4.30.0120.00916.45
7.4.00.0070.00715.11
7.3.300.0060.00316.18
7.3.290.0040.00416.35
7.3.280.0110.00616.32
7.3.270.0090.00917.40
7.3.260.0090.01016.43
7.3.250.0050.01216.40
7.3.240.0080.01016.37
7.3.230.0120.00616.42
7.3.210.0070.01016.38
7.3.200.0160.01019.39
7.3.190.0100.01016.30
7.3.180.0070.01016.63
7.3.170.0060.01316.49
7.3.160.0070.01416.28
7.2.330.0110.00716.64
7.2.320.0140.00416.46
7.2.310.0030.01316.65
7.2.300.0070.01016.51
7.2.290.0040.01416.33
7.2.60.0000.01416.86
7.2.00.0130.00719.57
7.1.200.0030.00315.68
7.1.100.0060.00618.29
7.1.70.0000.00717.11
7.1.60.0030.02319.40
7.1.50.0030.01917.03
7.1.00.0070.07322.34
7.0.200.0480.01014.41
7.0.60.0100.03321.71
7.0.50.0030.06017.90
7.0.40.0070.04019.98
7.0.30.0430.05320.19
7.0.20.0170.04720.00
7.0.10.0130.07720.13
7.0.00.0070.04020.30
5.6.280.0100.04721.13
5.6.210.0030.04020.75
5.6.200.0030.05718.16
5.6.190.0100.03720.43
5.6.180.0270.03720.35
5.6.170.0270.05020.71
5.6.160.0070.08020.50
5.6.150.0030.04718.19
5.6.140.0070.06318.16
5.6.130.0070.08318.21
5.6.120.0100.07721.12
5.6.110.0070.05020.98
5.6.100.0070.05721.11
5.6.90.0030.04021.01
5.6.80.0100.07720.50
5.5.350.0000.08020.35
5.5.340.0070.08017.92
5.5.330.0030.08320.37
5.5.320.0530.04020.29
5.5.310.0270.08020.33
5.5.300.0070.04017.91
5.5.290.0030.07317.98
5.5.280.0130.08020.76
5.5.270.0030.08020.84
5.5.260.0100.08720.79
5.5.250.0070.07320.68
5.5.240.0200.07720.25

preferences:
27.92 ms | 401 KiB | 5 Q