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($heading 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.0060.01518.56
8.3.50.0090.00618.30
8.3.40.0110.00718.71
8.3.30.0110.00318.71
8.3.20.0040.00420.14
8.3.10.0040.00423.57
8.3.00.0070.00317.59
8.2.180.0090.00618.27
8.2.170.0000.01422.96
8.2.160.0110.00322.23
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0030.00517.75
8.2.110.0070.00322.25
8.2.100.0090.00317.93
8.2.90.0050.00319.17
8.2.80.0080.00017.97
8.2.70.0060.00317.38
8.2.60.0030.00618.01
8.2.50.0080.00018.07
8.2.40.0040.00419.45
8.2.30.0030.00620.63
8.2.20.0040.00417.63
8.2.10.0070.00018.11
8.2.00.0080.00018.00
8.1.280.0090.00625.92
8.1.270.0040.00423.55
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0030.00622.48
8.1.230.0040.00817.55
8.1.220.0040.00417.77
8.1.210.0000.00818.77
8.1.200.0120.00217.00
8.1.190.0000.00817.23
8.1.180.0030.00518.10
8.1.170.0000.00818.87
8.1.160.0070.00021.90
8.1.150.0040.00418.90
8.1.140.0050.00319.58
8.1.130.0030.00317.63
8.1.120.0070.00017.52
8.1.110.0040.00417.37
8.1.100.0040.00417.52
8.1.90.0000.00817.48
8.1.80.0000.00817.41
8.1.70.0070.00017.38
8.1.60.0020.00517.42
8.1.50.0040.00417.41
8.1.40.0080.00017.53
8.1.30.0030.00517.66
8.1.20.0000.00717.50
8.1.10.0000.00717.63
8.1.00.0070.00017.37
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0000.00818.37
8.0.270.0000.00717.14
8.0.260.0030.00517.16
8.0.250.0040.00417.02
8.0.240.0000.00817.02
8.0.230.0000.00717.04
8.0.220.0030.00717.00
8.0.210.0030.00516.95
8.0.200.0030.00316.90
8.0.190.0020.00517.06
8.0.180.0050.00516.82
8.0.170.0000.00816.92
8.0.160.0030.00316.94
8.0.150.0000.00816.89
8.0.140.0000.00816.91
8.0.130.0030.00313.37
8.0.120.0070.00016.88
8.0.110.0000.00716.86
8.0.100.0040.00416.81
8.0.90.0050.00316.89
8.0.80.0070.00717.02
8.0.70.0000.00716.78
8.0.60.0040.00416.80
8.0.50.0050.00316.90
8.0.30.0100.00617.12
8.0.20.0100.01117.40
8.0.10.0020.00517.05
8.0.00.0100.00916.71
7.4.330.0000.00515.08
7.4.320.0060.00016.46
7.4.300.0030.00316.48
7.4.290.0000.00716.43
7.4.280.0040.00416.51
7.4.270.0060.00016.55
7.4.260.0050.00516.56
7.4.250.0070.00016.47
7.4.240.0020.00616.57
7.4.230.0070.00016.67
7.4.220.0110.00716.62
7.4.210.0090.00816.60
7.4.200.0070.00016.35
7.4.160.0140.00416.61
7.4.150.0060.01217.40
7.4.140.0120.01017.86
7.4.130.0060.01316.55
7.4.120.0130.00616.66
7.4.110.0100.00716.38
7.4.100.0060.01716.46
7.4.90.0070.01016.53
7.4.80.0000.01619.39
7.4.70.0000.01716.55
7.4.60.0060.00916.50
7.4.50.0050.00316.60
7.4.40.0110.00716.47
7.4.30.0060.01216.66
7.4.00.0090.00715.13
7.3.330.0000.00513.31
7.3.320.0060.00013.16
7.3.310.0080.00016.22
7.3.300.0000.00716.24
7.3.290.0000.00716.33
7.3.280.0130.00416.43
7.3.270.0080.00917.40
7.3.260.0090.00816.68
7.3.240.0090.01416.55
7.3.230.0060.00916.43
7.3.210.0070.00716.42
7.3.200.0030.01316.45
7.3.190.0100.00716.75
7.3.180.0160.00016.34
7.3.170.0070.01016.39
7.3.160.0110.00716.31
7.3.120.0070.01014.77
7.3.110.0070.01014.88
7.3.100.0000.01414.82
7.3.90.0070.00715.02
7.3.80.0070.00715.09
7.3.70.0040.00814.72
7.3.60.0080.00815.00
7.3.50.0060.00314.87
7.3.40.0030.00614.91
7.3.30.0040.00814.89
7.3.20.0030.00916.77
7.3.10.0000.01416.95
7.3.00.0070.00416.65
7.2.330.0000.01816.59
7.2.320.0040.01416.55
7.2.310.0110.00516.50
7.2.300.0060.01516.83
7.2.290.0130.01016.70
7.2.250.0150.00014.89
7.2.240.0030.01715.27
7.2.230.0080.00515.22
7.2.220.0060.00615.14
7.2.210.0070.00715.07
7.2.200.0000.01415.02
7.2.190.0030.01314.84
7.2.180.0060.01015.17
7.2.170.0060.00314.95
7.2.00.0000.01119.31
7.1.330.0030.01015.50
7.1.320.0060.00615.85
7.1.310.0070.01015.75
7.1.300.0070.01015.87
7.1.290.0060.00315.45
7.1.280.0000.00915.49
7.1.270.0030.01015.74
7.1.260.0040.01115.64
7.1.100.0000.01217.70
7.1.70.0000.00717.07
7.1.60.0130.01019.43
7.1.50.0030.01916.96
7.1.00.0070.07722.51
7.0.200.0700.00715.03
7.0.60.0100.07019.94
7.0.50.0100.07717.87
7.0.40.0070.05320.27
7.0.30.0130.04320.26
7.0.20.0300.05020.06
7.0.10.0130.07020.09
7.0.00.0100.06020.23
5.6.280.0000.06321.04
5.6.210.0100.08320.54
5.6.200.0100.06718.16
5.6.190.0100.07320.58
5.6.180.3670.04320.48
5.6.170.0370.06020.55
5.6.160.0030.05320.50
5.6.150.0030.06718.18
5.6.140.0030.06018.21
5.6.130.0030.06718.12
5.6.120.0100.06321.12
5.6.110.0170.07321.08
5.6.100.0070.08721.11
5.6.90.0070.08320.95
5.6.80.0100.05020.53
5.5.350.0070.08320.30
5.5.340.0100.08317.99
5.5.330.0070.04720.46
5.5.320.0270.07320.25
5.5.310.0200.05720.33
5.5.300.0030.03717.98
5.5.290.0000.05717.96
5.5.280.0030.08320.77
5.5.270.0070.04020.77
5.5.260.0030.07020.79
5.5.250.0130.07020.78
5.5.240.0000.06720.19
5.4.450.0430.06319.54
5.4.440.0270.06319.33
5.4.430.0370.05019.55
5.4.420.0200.06019.47
5.4.410.0370.05719.46
5.4.400.0100.06319.00
5.4.390.0630.07018.84
5.4.380.0200.05019.12
5.4.370.0170.06019.26
5.4.360.0230.05719.25
5.4.350.0530.06319.35
5.4.340.0500.06719.30
5.4.320.0700.04319.14
5.4.310.0330.03719.21
5.4.300.0500.07019.29
5.4.290.0200.06718.84
5.4.280.0130.05719.14
5.4.270.0270.06319.00
5.4.260.0100.07319.22
5.4.250.0170.05319.22
5.4.240.0500.05319.13
5.4.230.0570.04719.20
5.4.220.0600.07319.28
5.4.210.0600.05019.34
5.4.200.0200.04719.24
5.4.190.0230.04719.21
5.4.180.0170.06019.27
5.4.170.0230.06719.13
5.4.160.0330.05719.26
5.4.150.0600.05719.21
5.4.140.0170.05016.38
5.4.130.0170.05016.25
5.4.120.0330.05016.46
5.4.110.0200.06016.60
5.4.100.0400.04316.63
5.4.90.0270.04716.66
5.4.80.0130.05316.50
5.4.70.0130.06316.26
5.4.60.0500.07016.55
5.4.50.0370.06316.15
5.4.40.0700.06316.42
5.4.30.0630.04716.48
5.4.20.0470.05016.49
5.4.10.0570.05016.57
5.4.00.0200.05715.82

preferences:
59.72 ms | 400 KiB | 5 Q