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"); echo Foo::bar; // foreach($arr as $val){ var_dump($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.0110.00416.75
8.3.50.0080.01122.09
8.3.40.0070.00718.89
8.3.30.0120.00318.68
8.3.20.0000.00820.22
8.3.10.0080.00023.66
8.3.00.0030.00619.38
8.2.180.0100.00716.63
8.2.170.0070.01022.96
8.2.160.0050.00922.21
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0040.00417.63
8.2.110.0100.00720.38
8.2.100.0080.00417.93
8.2.90.0040.00419.40
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0060.00317.80
8.2.50.0060.00318.07
8.2.40.0040.00419.46
8.2.30.0000.00820.50
8.2.20.0050.00217.79
8.2.10.0000.00717.93
8.2.00.0050.00317.93
8.1.280.0070.00725.92
8.1.270.0060.00323.83
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00623.86
8.1.230.0060.00622.48
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0090.00417.25
8.1.190.0030.00516.98
8.1.180.0030.00518.10
8.1.170.0040.00418.87
8.1.160.0050.00221.96
8.1.150.0050.00518.88
8.1.140.0040.00419.50
8.1.130.0000.00717.61
8.1.120.0040.00417.29
8.1.110.0070.00017.52
8.1.100.0040.00417.47
8.1.90.0040.00417.48
8.1.80.0000.00717.35
8.1.70.0000.00717.33
8.1.60.0080.00017.56
8.1.50.0060.00317.54
8.1.40.0080.00017.53
8.1.30.0060.00317.71
8.1.20.0000.00717.57
8.1.10.0030.00517.61
8.1.00.0020.00517.36
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0030.00318.30
8.0.270.0030.00317.24
8.0.260.0000.00617.26
8.0.250.0050.00317.02
8.0.240.0070.00017.00
8.0.230.0040.00416.96
8.0.220.0060.00316.93
8.0.210.0000.00716.90
8.0.200.0060.00017.02
8.0.190.0030.00516.96
8.0.180.0050.00516.85
8.0.170.0080.00017.01
8.0.160.0050.00316.95
8.0.150.0040.00416.91
8.0.140.0040.00416.86
8.0.130.0030.00313.36
8.0.120.0000.00816.82
8.0.110.0050.00216.83
8.0.100.0040.00416.79
8.0.90.0000.00816.82
8.0.80.0030.01116.99
8.0.70.0020.00516.98
8.0.60.0000.00716.77
8.0.50.0070.00016.88
8.0.30.0120.00817.04
8.0.20.0120.00817.40
8.0.10.0040.00417.08
8.0.00.0090.00816.72
7.4.330.0000.00515.08
7.4.320.0000.00616.52
7.4.300.0000.00616.50
7.4.290.0050.00316.63
7.4.280.0050.00216.48
7.4.270.0000.00616.58
7.4.260.0070.00016.57
7.4.250.0060.00316.53
7.4.240.0060.00216.46
7.4.230.0030.00316.39
7.4.220.0090.01316.51
7.4.210.0070.01216.57
7.4.200.0000.00716.68
7.4.160.0090.01216.64
7.4.150.0120.00617.40
7.4.140.0080.01317.86
7.4.130.0110.00616.52
7.4.120.0100.00816.45
7.4.110.0100.00716.64
7.4.100.0120.00616.41
7.4.90.0100.00716.69
7.4.80.0080.00819.39
7.4.70.0090.00616.53
7.4.60.0060.01516.56
7.4.50.0040.00416.30
7.4.40.0100.00716.35
7.4.30.0090.00916.56
7.4.00.0040.01115.04
7.3.330.0000.00513.36
7.3.320.0050.00013.32
7.3.310.0030.00616.34
7.3.300.0030.00316.38
7.3.290.0040.00416.37
7.3.280.0070.01016.33
7.3.270.0100.01017.40
7.3.260.0120.01216.39
7.3.250.0090.00916.47
7.3.240.0070.01016.57
7.3.230.0100.00816.43
7.3.210.0080.01216.60
7.3.200.0160.00316.30
7.3.190.0070.01016.38
7.3.180.0150.00416.59
7.3.170.0060.00916.43
7.3.160.0090.00816.50
7.2.330.0140.00316.81
7.2.320.0000.01716.30
7.2.310.0110.00616.42
7.2.300.0070.01416.67
7.2.290.0110.00716.66
7.2.60.0030.01016.86
7.2.00.0030.01219.37
7.1.200.0070.00715.70
7.1.100.0000.01118.19
7.1.70.0040.00417.11
7.1.60.0130.01019.43
7.1.50.0040.00816.93
7.1.00.0030.07722.36
7.0.200.0110.00315.02
7.0.60.0070.06019.99
7.0.50.0100.08017.86
7.0.40.0030.07020.28
7.0.30.0170.04720.26
7.0.20.0270.07720.33
7.0.10.0070.05720.09
7.0.00.0130.07720.23
5.6.280.0070.05720.99
5.6.210.0200.07020.56
5.6.200.0100.08318.18
5.6.190.0170.06720.61
5.6.180.4000.04320.55
5.6.170.0270.04020.71
5.6.160.0100.07020.54
5.6.150.0030.06718.15
5.6.140.0030.04318.25
5.6.130.0200.07318.26
5.6.120.0130.08021.05
5.6.110.0130.08021.09
5.6.100.0100.08320.98
5.6.90.0200.07320.94
5.6.80.0030.07320.48
5.5.350.0070.07320.39
5.5.340.0130.05017.98
5.5.330.0200.07320.57
5.5.320.0200.04320.24
5.5.310.0270.07320.34
5.5.300.0000.04017.99
5.5.290.0070.05717.96
5.5.280.0030.08320.77
5.5.270.0130.03020.87
5.5.260.0030.07320.86
5.5.250.0100.07320.52
5.5.240.0070.07720.16
5.4.450.0130.05719.62
5.4.440.0230.05019.58
5.4.430.0230.06019.70
5.4.420.0330.06319.44
5.4.410.0130.06019.32
5.4.400.0300.04719.27
5.4.390.0230.05318.84
5.4.380.0170.05719.06
5.4.370.0170.05718.98
5.4.360.0270.05019.15
5.4.350.0370.03718.87
5.4.340.0130.05719.14
5.4.320.0230.04719.37
5.4.310.0070.05719.14
5.4.300.0270.05019.15
5.4.290.0270.05018.84
5.4.280.0430.06019.28
5.4.270.0100.05319.14
5.4.260.0200.04719.02
5.4.250.0130.05319.14
5.4.240.0200.05319.00
5.4.230.0130.05319.20
5.4.220.0270.05719.28
5.4.210.0070.06319.25
5.4.200.0070.05719.14
5.4.190.0130.06018.97
5.4.180.0000.07019.21
5.4.170.0470.05318.97
5.4.160.0470.05719.14
5.4.150.0530.05319.26
5.4.140.0600.05016.41
5.4.130.0100.06016.32
5.4.120.0300.04716.52
5.4.110.0270.05016.53
5.4.100.0200.04716.53
5.4.90.0200.04716.41
5.4.80.0170.05016.18
5.4.70.0200.04316.61
5.4.60.0130.04716.40
5.4.50.0100.05316.57
5.4.40.0130.07016.59
5.4.30.0170.07016.48
5.4.20.0530.06016.48
5.4.10.0400.07316.16
5.4.00.0270.04715.97

preferences:
56.5 ms | 401 KiB | 5 Q