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.0040.00416.73
8.0.100.0030.00616.87
8.0.90.0070.00016.71
8.0.80.0030.01316.86
8.0.70.0030.00516.66
8.0.60.0030.00516.68
8.0.50.0050.00216.64
8.0.30.0110.00817.11
8.0.20.0110.00817.40
8.0.10.0000.00717.09
8.0.00.0130.00516.68
7.4.240.0000.00716.57
7.4.230.0000.00716.45
7.4.220.0150.00916.64
7.4.210.0040.01216.60
7.4.200.0050.00316.43
7.4.160.0160.00016.39
7.4.150.0130.00717.40
7.4.140.0100.01017.86
7.4.130.0110.00916.45
7.4.120.0110.00716.54
7.4.110.0120.00616.40
7.4.100.0150.00716.48
7.4.90.0140.00416.43
7.4.80.0060.01019.39
7.4.70.0090.00916.63
7.4.60.0100.00716.46
7.4.50.0030.01316.33
7.4.40.0110.00516.45
7.4.30.0070.01616.58
7.4.10.0060.01314.94
7.4.00.0050.01314.98
7.3.300.0020.00516.32
7.3.290.0050.00316.34
7.3.280.0050.01416.32
7.3.270.0090.00817.40
7.3.260.0210.00516.43
7.3.250.0070.01016.41
7.3.240.0050.01216.42
7.3.230.0060.01116.53
7.3.210.0140.00416.44
7.3.200.0180.00619.39
7.3.190.0130.00716.41
7.3.180.0090.01216.50
7.3.170.0060.01516.29
7.3.160.0150.00316.39
7.3.130.0090.00914.95
7.3.120.0030.01515.00
7.3.110.0100.00914.87
7.3.100.0070.00814.95
7.3.90.0090.00614.81
7.3.80.0090.00514.72
7.3.70.0090.00614.88
7.3.60.0050.01114.94
7.3.50.0060.00914.47
7.3.40.0020.01314.79
7.3.30.0050.01014.65
7.3.20.0090.00716.61
7.3.10.0070.00616.70
7.3.00.0060.00816.81
7.2.330.0070.01016.64
7.2.320.0030.01416.74
7.2.310.0100.01016.35
7.2.300.0090.00916.29
7.2.290.0070.01016.63
7.2.260.0030.01514.71
7.2.250.0090.00915.11
7.2.240.0090.00914.81
7.2.230.0020.01515.03
7.2.220.0020.01215.12
7.2.210.0050.00914.82
7.2.200.0090.00514.92
7.2.190.0070.00915.07
7.2.180.0070.01214.92
7.2.170.0070.00915.02
7.2.160.0040.01214.95
7.2.150.0000.01216.84
7.2.140.0130.00016.84
7.2.130.0100.00216.68
7.2.120.0040.00716.86
7.2.110.0070.00716.95
7.2.100.0090.00516.93
7.2.90.0080.00816.91
7.2.80.0040.01016.80
7.2.70.0080.00916.78
7.2.60.0060.01016.82
7.2.50.0090.00516.73
7.2.40.0050.00816.86
7.2.30.0050.00917.00
7.2.20.0070.00716.83
7.2.10.0040.01016.87
7.2.00.0060.00717.78
7.1.330.0050.01115.67
7.1.320.0070.00815.70
7.1.310.0110.00515.58
7.1.300.0060.00915.48
7.1.290.0080.00715.64
7.1.280.0080.00815.63
7.1.270.0080.00815.59
7.1.260.0070.00915.51
7.1.250.0020.01215.63
7.1.240.0030.00915.73
7.1.230.0030.01315.41
7.1.220.0090.00615.64
7.1.210.0040.01115.40
7.1.200.0030.01015.72
7.1.190.0040.01115.80
7.1.180.0040.01515.70
7.1.170.0030.00815.42
7.1.160.0000.01615.59
7.1.150.0070.01315.71
7.1.140.0060.00915.41
7.1.130.0000.01215.69
7.1.120.0070.01015.64
7.1.110.0130.00315.56
7.1.100.0000.01316.88
7.1.90.0080.00615.45
7.1.80.0070.01015.65
7.1.70.0040.00716.41
7.1.60.0070.01517.58
7.1.50.0080.01016.24
7.1.40.0000.01115.64
7.1.30.0040.00815.72
7.1.20.0070.01115.82
7.1.10.0030.01215.59
7.1.00.0050.04019.01
7.0.330.0030.01315.53
7.0.320.0060.00615.61
7.0.310.0090.00615.47
7.0.300.0100.00715.18
7.0.290.0100.00615.54
7.0.280.0040.01115.45
7.0.270.0030.00915.18
7.0.260.0090.00615.16
7.0.250.0090.00615.45
7.0.240.0100.00315.43
7.0.230.0060.00915.15
7.0.220.0030.01015.38
7.0.210.0120.00315.21
7.0.200.0300.00514.86
7.0.190.0060.00615.18
7.0.180.0120.00315.40
7.0.170.0090.00615.50
7.0.160.0080.00415.57
7.0.150.0070.00715.34
7.0.140.0030.01215.50
7.0.130.0060.01015.51
7.0.120.0090.00615.59
7.0.110.0000.00915.18
7.0.100.0090.00915.57
7.0.90.0040.01115.52
7.0.80.0090.00615.35
7.0.70.0070.00715.14
7.0.60.0050.02618.53
7.0.50.0130.04116.53
7.0.40.0030.04016.95
7.0.30.0170.04216.80
7.0.20.0170.03816.86
7.0.10.0100.04216.86
7.0.00.0070.02516.80
5.6.400.0070.01314.35
5.6.390.0070.00714.14
5.6.380.0030.00914.62
5.6.370.0040.01514.59
5.6.360.0090.01214.27
5.6.350.0060.01614.37
5.6.340.0080.00814.60
5.6.330.0060.00914.42
5.6.320.0060.00914.23
5.6.310.0090.00914.29
5.6.300.0000.01814.39
5.6.290.0040.00814.38
5.6.280.0000.02617.70
5.6.270.0120.00614.04
5.6.260.0150.00614.71
5.6.250.0070.01414.42
5.6.240.0070.00714.36
5.6.230.0110.00714.28
5.6.220.0130.00314.27
5.6.210.0040.04417.51
5.6.200.0080.03916.27
5.6.190.0020.02917.37
5.6.180.0200.03817.49
5.6.170.0170.04317.30
5.6.160.0080.03917.55
5.6.150.0100.02316.20
5.6.140.0020.03816.14
5.6.130.0050.04216.11
5.6.120.0080.05117.61
5.6.110.0050.04517.67
5.6.100.0050.04317.50
5.6.90.0030.02617.56
5.6.80.0130.04117.43
5.6.70.0030.02114.16
5.6.60.0070.01014.15
5.6.50.0000.01314.07
5.6.40.0030.02014.12
5.6.30.0060.01214.31
5.6.20.0070.01114.46
5.6.10.0110.00713.93
5.6.00.0030.01414.15
5.5.380.0040.01414.07
5.5.370.0030.01713.91
5.5.360.0090.00914.13
5.5.350.0030.04717.21
5.5.340.0080.03616.01
5.5.330.0120.04017.16
5.5.320.0360.03917.12
5.5.310.0200.04217.09
5.5.300.0050.04916.04
5.5.290.0130.04116.18
5.5.280.0070.04917.43
5.5.270.0070.02917.53
5.5.260.0070.04517.36
5.5.250.0040.04917.12
5.5.240.0130.03717.17
5.5.230.0100.01314.09
5.5.220.0000.02213.98
5.5.210.0000.01513.99
5.5.200.0060.01414.29
5.5.190.0100.01014.24
5.5.180.0030.01313.95
5.5.170.0090.00913.78
5.5.160.0100.00714.15
5.5.150.0140.00314.00
5.5.140.0100.00714.13
5.5.130.0130.00913.66
5.5.120.0030.01414.13
5.5.110.0060.01214.25
5.5.100.0080.00814.20
5.5.90.0100.00614.00
5.5.80.0030.01413.74
5.5.70.0040.01414.25
5.5.60.0110.00714.20
5.5.50.0040.01513.72
5.5.40.0060.01213.95
5.5.30.0090.00913.83
5.5.20.0070.01413.82
5.5.10.0090.00913.79
5.5.00.0030.01314.11

preferences:
42.31 ms | 401 KiB | 5 Q