3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $bar; } $foo = new Foo; $arr = array("", " ", FALSE, TRUE, array(), NULL, "0", 0, 0.0, new stdClass, $foo, $foo->bar, "\0"); $headings = array('type', 'if', 'isset', 'empty', 'is_null'); foreach($headings as $heading){ echo pad_str($heading, 20), " | "; } echo "\n"; /* foreach($arr as $val){ echo gettype($val), " | "; } */

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.3.60.0070.01418.68
8.3.50.0080.01022.05
8.3.40.0070.00718.98
8.3.30.0110.00418.83
8.3.20.0000.00719.98
8.3.10.0000.00723.66
8.3.00.0040.00717.38
8.2.180.0120.00316.63
8.2.170.0070.00722.96
8.2.160.0100.00321.99
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0070.00026.16
8.2.120.0080.00017.75
8.2.110.0000.01322.28
8.2.100.0000.01217.93
8.2.90.0040.00419.17
8.2.80.0040.00417.97
8.2.70.0090.00017.48
8.2.60.0060.00318.04
8.2.50.0040.00418.07
8.2.40.0030.00521.01
8.2.30.0070.00320.74
8.2.20.0020.00517.86
8.2.10.0040.00418.00
8.2.00.0000.00818.13
8.1.280.0040.01125.92
8.1.270.0060.00323.96
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00422.62
8.1.230.0000.01217.68
8.1.220.0040.00417.79
8.1.210.0000.00818.77
8.1.200.0070.00417.36
8.1.190.0080.00017.35
8.1.180.0060.00318.10
8.1.170.0080.00018.93
8.1.160.0070.00021.93
8.1.150.0040.00418.89
8.1.140.0040.00419.46
8.1.130.0050.00217.71
8.1.120.0000.00717.38
8.1.110.0040.00417.48
8.1.100.0040.00417.42
8.1.90.0030.00517.38
8.1.80.0060.00317.34
8.1.70.0030.00317.35
8.1.60.0000.00717.47
8.1.50.0060.00317.57
8.1.40.0040.00417.43
8.1.30.0000.00817.73
8.1.20.0000.00717.52
8.1.10.0040.00417.59
8.1.00.0050.00217.48
8.0.300.0030.00618.77
8.0.290.0040.00416.88
8.0.280.0000.00718.38
8.0.270.0050.00217.26
8.0.260.0000.00717.27
8.0.250.0070.00016.98
8.0.240.0080.00016.93
8.0.230.0070.00017.04
8.0.220.0100.00016.92
8.0.210.0030.00616.85
8.0.200.0030.00316.93
8.0.190.0040.00416.98
8.0.180.0090.00317.04
8.0.170.0050.00216.98
8.0.160.0040.00417.06
8.0.150.0000.00716.83
8.0.140.0000.00716.74
8.0.130.0070.00013.45
8.0.120.0040.00416.92
8.0.110.0000.00716.94
8.0.100.0040.00417.02
8.0.90.0000.00916.82
8.0.80.0090.00616.89
8.0.70.0040.00416.94
8.0.60.0040.00416.86
8.0.50.0050.00216.98
8.0.30.0140.00717.04
8.0.20.0100.01017.40
8.0.10.0000.00717.05
8.0.00.0140.00616.70
7.4.330.0000.00515.08
7.4.320.0060.00016.52
7.4.300.0000.00616.52
7.4.290.0000.00716.58
7.4.280.0040.00416.60
7.4.270.0060.00016.50
7.4.260.0090.00016.45
7.4.250.0070.00016.57
7.4.240.0010.00616.62
7.4.230.0030.00316.61
7.4.220.0030.01616.49
7.4.210.0100.00616.61
7.4.200.0030.00316.36
7.4.160.0030.01416.55
7.4.150.0070.01017.40
7.4.140.0110.00817.86
7.4.130.0100.00716.52
7.4.120.0080.01116.61
7.4.110.0070.01016.53
7.4.100.0170.00016.47
7.4.90.0100.00616.48
7.4.80.0100.01219.39
7.4.70.0060.01716.40
7.4.60.0080.00816.50
7.4.50.0000.00816.52
7.4.40.0050.01116.52
7.4.30.0070.01116.55
7.4.00.0040.01214.91
7.3.330.0050.00013.41
7.3.320.0050.00013.23
7.3.310.0040.00416.27
7.3.300.0030.00316.37
7.3.290.0070.00016.36
7.3.280.0100.00716.38
7.3.270.0090.00917.40
7.3.260.0090.00916.61
7.3.250.0100.00816.40
7.3.240.0140.00516.52
7.3.230.0070.01016.50
7.3.210.0090.00616.49
7.3.200.0100.00716.43
7.3.190.0060.00916.64
7.3.180.0080.00816.56
7.3.170.0120.00416.50
7.3.160.0030.01316.46
7.2.330.0070.01016.41
7.2.320.0070.01016.76
7.2.310.0040.01316.81
7.2.300.0120.00616.41
7.2.290.0040.01416.49
7.2.60.0030.01316.91
7.2.00.0070.00719.21
7.1.200.0280.00715.68
7.1.100.0000.01118.14
7.1.70.0000.00717.27
7.1.60.0130.01319.43
7.1.50.0100.01316.80
7.1.00.0030.07722.45
7.0.200.0650.00414.55
7.0.60.0070.04319.93
7.0.50.0170.06717.88
7.0.40.0100.08320.13
7.0.30.0200.04020.21
7.0.20.0230.05020.15
7.0.10.0170.07720.09
7.0.00.0070.07720.08
5.6.280.0070.06321.00
5.6.210.0100.06020.54
5.6.200.0000.04718.27
5.6.190.0130.07020.48
5.6.180.3700.04020.68
5.6.170.0270.05720.50
5.6.160.0070.05020.41
5.6.150.0030.05018.20
5.6.140.0030.07018.19
5.6.130.0030.05018.14
5.6.120.0070.04021.02
5.6.110.0130.07721.13
5.6.100.0200.06020.96
5.6.90.0070.09021.07
5.6.80.0000.08320.50
5.5.350.0230.07320.41
5.5.340.0100.07718.08
5.5.330.0100.06720.25
5.5.320.0330.07320.27
5.5.310.0370.05720.27
5.5.300.0000.04018.00
5.5.290.0030.04317.99
5.5.280.0070.05020.77
5.5.270.0070.03720.68
5.5.260.0070.06020.88
5.5.250.0130.05320.77
5.5.240.0030.05320.26
5.4.450.0270.05319.60
5.4.440.0100.06019.54
5.4.430.0100.06019.47
5.4.420.0170.05019.21
5.4.410.0200.04719.07
5.4.400.0030.06019.15
5.4.390.0070.06019.26
5.4.380.0430.05719.38
5.4.370.0730.05018.98
5.4.360.0530.05319.00
5.4.350.0470.05719.11
5.4.340.0200.05019.05
5.4.320.0100.06018.98
5.4.310.0030.05718.84
5.4.300.0200.04718.83
5.4.290.0070.06019.05
5.4.280.0270.05319.25
5.4.270.0200.05019.14
5.4.260.0170.06019.15
5.4.250.0300.04019.35
5.4.240.0270.06719.25
5.4.230.0200.05319.04
5.4.220.0170.06019.11
5.4.210.0130.05718.97
5.4.200.0530.06018.86
5.4.190.0730.05318.83
5.4.180.0670.04318.97
5.4.170.0030.06319.23
5.4.160.0230.05318.81
5.4.150.0600.05019.32
5.4.140.0400.05016.39
5.4.130.0100.05016.36
5.4.120.0700.06316.43
5.4.110.0800.07016.25
5.4.100.0600.05716.18
5.4.90.0270.04716.52
5.4.80.0170.05716.16
5.4.70.0100.05316.25
5.4.60.0170.04716.53
5.4.50.0300.04316.49
5.4.40.0200.04716.52
5.4.30.0200.05716.59
5.4.20.0400.04716.50
5.4.10.0030.06016.50
5.4.00.0700.04315.79

preferences:
81.41 ms | 401 KiB | 5 Q