3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace A { class Foo { public $foo; public function __construct() { $this->foo = function (int $a) { var_dump("foo"); }; } } } namespace { $foo = (new A\Foo)->foo; ($foo)(null); echo "Done\n"; }

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.0090.00918.55
8.3.50.0100.00821.19
8.3.40.0150.00018.65
8.3.30.0080.00619.02
8.3.20.0040.00420.33
8.3.10.0040.00423.65
8.3.00.0080.00020.30
8.2.180.0090.00618.54
8.2.170.0070.00722.96
8.2.160.0030.01620.43
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0030.00617.38
8.2.110.0060.00322.11
8.2.100.0060.00617.84
8.2.90.0070.00417.88
8.2.80.0000.00817.97
8.2.70.0060.00318.04
8.2.60.0030.00518.04
8.2.50.0040.00418.10
8.2.40.0000.00720.42
8.2.30.0040.00420.71
8.2.20.0020.00517.72
8.2.10.0000.00818.05
8.2.00.0040.00418.06
8.1.280.0080.01125.92
8.1.270.0140.00423.88
8.1.260.0000.00926.35
8.1.250.0040.00428.09
8.1.240.0060.00319.15
8.1.230.0110.00019.23
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0000.00817.35
8.1.180.0000.00918.10
8.1.170.0030.00718.58
8.1.160.0040.00421.93
8.1.150.0000.00818.89
8.1.140.0040.00417.56
8.1.130.0000.00717.71
8.1.120.0020.00517.45
8.1.110.0040.00417.46
8.1.100.0000.00817.38
8.1.90.0000.00717.41
8.1.80.0040.00417.45
8.1.70.0000.00717.44
8.1.60.0040.00417.60
8.1.50.0040.00417.56
8.1.40.0060.00317.41
8.1.30.0050.00317.50
8.1.20.0000.00817.68
8.1.10.0000.00817.60
8.1.00.0000.00817.56
8.0.300.0000.00719.64
8.0.290.0050.00216.75
8.0.280.0030.00318.27
8.0.270.0000.00717.12
8.0.260.0030.00317.15
8.0.250.0070.00016.86
8.0.240.0040.00416.92
8.0.230.0030.00416.92
8.0.220.0050.00316.80
8.0.210.0040.00416.83
8.0.200.0000.00717.04
8.0.190.0000.00817.06
8.0.180.0000.00816.91
8.0.170.0030.00616.85
8.0.160.0000.00816.95
8.0.150.0000.00716.81
8.0.140.0040.00416.89
8.0.130.0030.00313.40
8.0.120.0040.00416.85
8.0.110.0040.00416.88
8.0.100.0040.00416.83
8.0.90.0070.00016.78
8.0.80.0040.01116.92
8.0.70.0000.00716.75
8.0.60.0070.00316.96
8.0.50.0040.00416.93
8.0.30.0120.00617.04
8.0.20.0140.00617.40
8.0.10.0040.00416.91
8.0.00.0070.01216.78
7.4.330.0000.00515.08
7.4.320.0030.00316.60
7.4.300.0000.00616.59
7.4.290.0040.00416.64
7.4.280.0050.00316.49
7.4.270.0070.00016.62
7.4.260.0030.00316.64
7.4.250.0000.00916.46
7.4.240.0020.00516.59
7.4.230.0040.00416.54
7.4.220.0040.01416.53
7.4.210.0030.01316.55
7.4.200.0080.00016.69
7.4.160.0090.00916.70
7.4.150.0070.01117.40
7.4.140.0190.00517.86
7.4.130.0110.00616.52
7.4.120.0070.01016.48
7.4.110.0080.00916.50
7.4.100.0070.01116.45
7.4.90.0110.00616.59
7.4.80.0070.01019.39
7.4.70.0060.01116.56
7.4.60.0100.00716.48
7.4.50.0030.00616.47
7.4.40.0060.01216.53
7.4.30.0160.00616.46
7.4.00.0060.00615.03
7.3.330.0050.00013.36
7.3.320.0030.00313.36
7.3.310.0000.00716.39
7.3.300.0030.00316.33
7.3.290.0080.00816.34
7.3.280.0100.00916.37
7.3.270.0090.00917.40
7.3.260.0030.01916.36
7.3.250.0120.00616.34
7.3.240.0100.00716.40
7.3.230.0100.00716.53
7.3.210.0080.00816.40
7.3.200.0100.00716.39
7.3.190.0130.00316.51
7.3.180.0030.01316.50
7.3.170.0100.00716.37
7.3.160.0100.00716.48
7.2.330.0140.00316.64
7.2.320.0070.01116.48
7.2.310.0150.00316.80
7.2.300.0040.01816.79
7.2.290.0030.01816.67
7.2.60.0000.01416.93
7.2.00.0000.01119.33
7.1.200.0120.00015.78
7.1.100.0030.00618.16
7.1.70.0000.00717.09
7.1.60.0030.01919.29
7.1.50.0070.01716.73
7.1.00.0030.07722.45
7.0.200.0000.01016.57
7.0.60.0070.07719.86
7.0.50.0200.03317.79
7.0.40.0100.07020.13
7.0.30.0230.05020.10
7.0.20.0300.07320.07
7.0.10.0030.05020.24
7.0.00.0030.07720.14
5.6.280.0000.06720.88
5.6.210.0030.09020.57
5.6.200.0070.08018.18
5.6.190.0070.05020.34
5.6.180.0370.08720.63
5.6.170.0170.04020.55
5.6.160.0070.07720.55
5.6.150.0030.08018.18
5.6.140.0130.05318.14
5.6.130.0130.07718.14
5.6.120.0130.07020.98
5.6.110.0100.06021.12
5.6.100.0100.08021.01
5.6.90.0030.08721.14
5.6.80.0100.08020.39
5.5.350.0130.07320.41
5.5.340.0130.07318.04
5.5.330.0030.05320.40
5.5.320.2670.03720.24
5.5.310.0330.08320.37
5.5.300.0100.07318.08
5.5.290.0070.03718.01
5.5.280.0130.04320.78
5.5.270.0070.04720.75
5.5.260.0030.04020.76
5.5.250.0170.07720.55
5.5.240.0030.08020.21
5.4.450.0170.04019.57
5.4.440.0100.06319.27
5.4.430.0230.08319.52
5.4.420.0300.04719.38
5.4.410.0170.04719.09
5.4.400.0170.03719.20
5.4.390.0130.04719.30
5.4.380.0230.05019.26
5.4.370.0200.04719.22
5.4.360.0400.06318.95
5.4.350.0200.08019.20
5.4.340.0230.05319.15
5.4.320.0270.07319.22
5.4.310.0230.06319.00
5.4.300.0270.06019.24
5.4.290.0170.08019.08
5.4.280.0170.07318.98
5.4.270.0370.06319.08
5.4.260.0230.04019.15
5.4.250.0300.05319.15
5.4.240.0270.07018.87
5.4.230.0270.07019.16
5.4.220.0300.06719.14
5.4.210.0270.06719.16
5.4.200.0270.06318.96
5.4.190.0230.03318.86
5.4.180.0230.04719.21
5.4.170.0230.06719.17
5.4.160.0200.06018.97
5.4.150.0230.05319.13
5.4.140.0270.04316.49
5.4.130.0170.07316.35
5.4.120.0300.06316.46
5.4.110.0300.04316.51
5.4.100.0230.07016.42
5.4.90.0200.06016.32
5.4.80.0270.06016.49

preferences:
46.22 ms | 401 KiB | 5 Q