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 { ((new A\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.70.0120.00918.68
8.3.60.0150.00618.43
8.3.50.0150.00321.22
8.3.40.0100.01018.84
8.3.30.0040.01118.75
8.3.20.0070.00020.21
8.3.10.0000.00723.65
8.3.00.0000.00720.21
8.2.190.0210.00018.42
8.2.180.0060.00918.54
8.2.170.0140.00022.96
8.2.160.0040.01120.45
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00017.63
8.2.110.0060.00320.47
8.2.100.0000.01117.72
8.2.90.0000.00819.10
8.2.80.0040.00417.97
8.2.70.0080.00017.50
8.2.60.0040.00417.68
8.2.50.0030.00618.07
8.2.40.0070.00019.38
8.2.30.0000.00820.63
8.2.20.0000.00817.68
8.2.10.0000.00817.97
8.2.00.0040.00418.03
8.1.280.0040.01125.92
8.1.270.0090.00923.71
8.1.260.0100.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00623.68
8.1.230.0130.00021.04
8.1.220.0000.00917.74
8.1.210.0050.00318.77
8.1.200.0000.00917.35
8.1.190.0040.00416.99
8.1.180.0030.00618.10
8.1.170.0060.00318.50
8.1.160.0000.00722.02
8.1.150.0000.00718.84
8.1.140.0040.00417.34
8.1.130.0040.00417.67
8.1.120.0000.00717.40
8.1.110.0040.00417.43
8.1.100.0070.00017.48
8.1.90.0000.00717.30
8.1.80.0050.00217.34
8.1.70.0000.00717.42
8.1.60.0030.00617.48
8.1.50.0000.00817.53
8.1.40.0000.00817.49
8.1.30.0040.00417.65
8.1.20.0030.00517.64
8.1.10.0040.00417.61
8.1.00.0000.00817.48
8.0.300.0000.00818.77
8.0.290.0030.00616.75
8.0.280.0000.00718.35
8.0.270.0030.00317.16
8.0.260.0040.00417.12
8.0.250.0050.00316.95
8.0.240.0000.00616.88
8.0.230.0030.00416.89
8.0.220.0030.00316.94
8.0.210.0020.00516.93
8.0.200.0000.00817.04
8.0.190.0000.00816.86
8.0.180.0040.00417.04
8.0.170.0030.00716.99
8.0.160.0030.00316.92
8.0.150.0050.00316.97
8.0.140.0040.00416.84
8.0.130.0060.00013.40
8.0.120.0080.00017.04
8.0.110.0040.00416.87
8.0.100.0070.00017.07
8.0.90.0040.00416.75
8.0.80.0030.01116.96
8.0.70.0040.00417.07
8.0.60.0000.00916.96
8.0.50.0000.00716.99
8.0.30.0130.00717.18
8.0.20.0070.01217.42
8.0.10.0050.00317.20
8.0.00.0110.00616.79
7.4.330.0050.00015.08
7.4.320.0000.00716.61
7.4.300.0060.00016.41
7.4.290.0070.00016.41
7.4.280.0070.00016.36
7.4.270.0000.00716.50
7.4.260.0030.00316.51
7.4.250.0000.00816.48
7.4.240.0040.00316.54
7.4.230.0030.00316.68
7.4.220.0030.01516.59
7.4.210.0080.00816.72
7.4.200.0030.00316.48
7.4.160.0090.00616.48
7.4.150.0160.00617.40
7.4.140.0180.00617.86
7.4.130.0130.00416.62
7.4.120.0120.00916.57
7.4.110.0070.01016.36
7.4.100.0090.01216.51
7.4.90.0130.00316.47
7.4.80.0160.00419.39
7.4.70.0030.01316.67
7.4.60.0030.01316.59
7.4.50.0050.00316.27
7.4.40.0090.00616.59
7.4.30.0060.01616.54
7.4.00.0060.01014.88
7.3.330.0000.00613.18
7.3.320.0000.00713.19
7.3.310.0040.00416.35
7.3.300.0070.00016.38
7.3.290.0080.00816.36
7.3.280.0130.00616.38
7.3.270.0070.01017.40
7.3.260.0080.00816.58
7.3.250.0120.00716.41
7.3.240.0120.01116.62
7.3.230.0090.00916.39
7.3.210.0130.00316.61
7.3.200.0150.00616.39
7.3.190.0100.00716.48
7.3.180.0060.01016.60
7.3.170.0130.00316.39
7.3.160.0060.01116.46
7.3.120.0110.00614.81
7.3.110.0020.01214.63
7.3.100.0100.00614.68
7.3.90.0050.00714.93
7.3.80.0050.00614.71
7.3.70.0040.00714.91
7.3.60.0100.00314.78
7.3.50.0020.01514.82
7.3.40.0060.00514.66
7.3.30.0050.00914.79
7.3.20.0020.01116.74
7.3.10.0070.00516.63
7.3.00.0050.00916.68
7.2.330.0110.00716.72
7.2.320.0120.01216.68
7.2.310.0140.00416.42
7.2.300.0090.00716.51
7.2.290.0140.00316.58
7.2.250.0030.01415.23
7.2.240.0000.01715.03
7.2.230.0050.00814.93
7.2.220.0100.00414.93
7.2.210.0070.00815.07
7.2.200.0070.00914.96
7.2.190.0070.00915.07
7.2.180.0060.00714.89
7.2.170.0070.00714.96
7.2.160.0060.00914.98
7.2.150.0060.00916.89
7.2.140.0030.01216.84
7.2.130.0090.00316.71
7.2.120.0170.00016.95
7.2.110.0060.00916.81
7.2.100.0040.00716.71
7.2.90.0030.01216.98
7.2.80.0060.00616.58
7.2.70.0070.01016.71
7.2.60.0030.01216.78
7.2.50.0090.00616.63
7.2.40.0060.00616.76
7.2.30.0040.01217.07
7.2.20.0060.00917.00
7.2.10.0030.01316.71
7.2.00.0070.00718.04
7.1.330.0020.01315.58
7.1.320.0030.01015.69
7.1.310.0060.00515.82
7.1.300.0070.00315.61
7.1.290.0050.01015.71
7.1.280.0040.01115.60
7.1.270.0080.00715.38
7.1.260.0030.00915.57
7.1.250.0080.00315.78
7.1.200.0030.01015.64
7.1.100.0070.00717.88
7.1.70.0000.01017.13
7.1.60.0090.01519.29
7.1.50.0100.01417.02
7.1.00.0070.07322.53
7.0.200.0040.00416.82
7.0.60.0200.07719.92
7.0.50.0100.07717.86
7.0.40.0070.04720.30
7.0.30.0200.06020.08
7.0.20.0200.04320.19
7.0.10.0130.03720.07
7.0.00.0000.05320.23
5.6.280.0000.07320.90
5.6.210.0070.05020.72
5.6.200.0130.07318.18
5.6.190.0030.09020.61
5.6.180.0270.05020.61
5.6.170.0330.04720.57
5.6.160.0000.04320.56
5.6.150.0030.07018.28
5.6.140.0030.04018.27
5.6.130.0070.04318.17
5.6.120.0070.04021.09
5.6.110.0030.07320.89
5.6.100.0070.09020.89
5.6.90.0070.03720.99
5.6.80.0070.08720.37
5.5.350.0100.06020.42
5.5.340.0030.08317.98
5.5.330.0100.08020.27
5.5.320.2900.04320.38
5.5.310.0200.08720.27
5.5.300.0030.07317.95
5.5.290.0100.06717.97
5.5.280.0100.07720.74
5.5.270.0100.07020.76
5.5.260.0100.09020.84
5.5.250.0100.04020.47
5.5.240.0070.07720.36
5.4.450.0230.05319.34
5.4.440.0170.06319.46
5.4.430.0230.05019.37
5.4.420.0300.04319.38
5.4.410.0200.05319.40
5.4.400.0270.04319.14
5.4.390.0230.05019.21
5.4.380.0130.05718.98
5.4.370.0200.05319.24
5.4.360.0330.04019.34
5.4.350.0270.05018.88
5.4.340.0200.05719.24
5.4.320.0300.04318.84
5.4.310.0270.04719.01
5.4.300.0130.06019.21
5.4.290.0200.05319.25
5.4.280.0200.05719.28
5.4.270.0200.06319.21
5.4.260.0270.04319.21
5.4.250.0230.05019.29
5.4.240.0330.04019.25
5.4.230.0230.05319.10
5.4.220.0230.05719.00
5.4.210.0200.05319.00
5.4.200.0200.05319.13
5.4.190.0470.07719.21
5.4.180.0170.06018.86
5.4.170.0230.05019.25
5.4.160.0230.04718.99
5.4.150.0170.05719.22
5.4.140.0170.05716.35
5.4.130.0200.05016.57
5.4.120.0130.05716.74
5.4.110.0170.05316.46
5.4.100.0170.05316.64
5.4.90.0230.04316.30
5.4.80.0200.04716.55
5.4.70.0270.06716.49
5.4.60.0030.04016.56
5.4.50.0070.05016.55
5.4.40.0100.05016.52
5.4.30.0300.04716.42
5.4.20.0370.05316.16

preferences:
57.77 ms | 401 KiB | 5 Q