3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace A { class Foo { public $foo; public function __construct() { $this->foo = function (integer $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.0180.00418.39
8.3.50.0120.00621.18
8.3.40.0140.00018.96
8.3.30.0070.00718.80
8.3.20.0040.00420.20
8.3.10.0080.00023.66
8.3.00.0040.00420.16
8.2.180.0090.00618.51
8.2.170.0060.00922.96
8.2.160.0140.00020.22
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0060.00317.63
8.2.110.0070.00322.30
8.2.100.0080.00417.75
8.2.90.0070.00019.26
8.2.80.0040.00417.97
8.2.70.0000.00917.63
8.2.60.0040.00417.93
8.2.50.0030.00618.07
8.2.40.0020.00519.45
8.2.30.0050.00320.50
8.2.20.0040.00417.80
8.2.10.0000.00818.09
8.2.00.0040.00418.05
8.1.280.0060.00925.92
8.1.270.0210.00023.86
8.1.260.0000.01026.35
8.1.250.0040.00428.09
8.1.240.0040.00422.39
8.1.230.0090.00317.42
8.1.220.0050.00317.74
8.1.210.0030.00618.77
8.1.200.0030.00617.22
8.1.190.0000.00917.13
8.1.180.0040.00418.10
8.1.170.0070.00418.31
8.1.160.0040.00421.98
8.1.150.0040.00418.95
8.1.140.0030.00517.41
8.1.130.0000.00717.77
8.1.120.0000.00717.43
8.1.110.0040.00417.46
8.1.100.0050.00217.52
8.1.90.0000.00717.38
8.1.80.0060.00317.53
8.1.70.0030.00317.36
8.1.60.0040.00417.54
8.1.50.0040.00417.41
8.1.40.0000.00817.56
8.1.30.0050.00317.57
8.1.20.0040.00417.66
8.1.10.0000.00717.55
8.1.00.0070.00017.55
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0030.00318.26
8.0.270.0030.00317.22
8.0.260.0000.00817.23
8.0.250.0000.00716.90
8.0.240.0000.00716.95
8.0.230.0070.00016.95
8.0.220.0000.00716.79
8.0.210.0040.00416.89
8.0.200.0030.00517.08
8.0.190.0000.00816.96
8.0.180.0030.00516.92
8.0.170.0030.00616.93
8.0.160.0050.00316.89
8.0.150.0030.00316.91
8.0.140.0000.00716.95
8.0.130.0030.00313.34
8.0.120.0080.00016.99
8.0.110.0000.00716.87
8.0.100.0040.00416.83
8.0.90.0070.00016.83
8.0.80.0040.01116.85
8.0.70.0070.00016.76
8.0.60.0030.00516.95
8.0.50.0000.00816.85
8.0.30.0100.00817.01
8.0.20.0130.00617.40
8.0.10.0040.00417.12
8.0.00.0080.01016.78
7.4.330.0020.00215.08
7.4.320.0000.00616.51
7.4.300.0060.00016.52
7.4.290.0020.00516.65
7.4.280.0070.00016.58
7.4.270.0040.00416.42
7.4.260.0030.00316.63
7.4.250.0030.00716.56
7.4.240.0050.00316.49
7.4.230.0030.00316.59
7.4.220.0140.00416.36
7.4.210.0110.00416.53
7.4.200.0030.00316.59
7.4.160.0100.00716.48
7.4.150.0150.00317.40
7.4.140.0130.00817.86
7.4.130.0080.00916.53
7.4.120.0050.01516.48
7.4.110.0090.00916.67
7.4.100.0070.01116.64
7.4.90.0060.01416.61
7.4.80.0080.01019.39
7.4.70.0070.01016.43
7.4.60.0130.00316.57
7.4.50.0060.00316.45
7.4.40.0090.00916.57
7.4.30.0090.00916.65
7.4.00.0110.00315.04
7.3.330.0000.00713.14
7.3.320.0000.00613.23
7.3.310.0000.00816.18
7.3.300.0000.00616.23
7.3.290.0070.00716.37
7.3.280.0090.01016.32
7.3.270.0170.00017.40
7.3.260.0140.00416.45
7.3.250.0080.00916.45
7.3.240.0060.01216.30
7.3.230.0140.00316.39
7.3.210.0070.01016.44
7.3.200.0190.00416.68
7.3.190.0080.00816.45
7.3.180.0100.00616.40
7.3.170.0100.00616.52
7.3.160.0110.00716.49
7.2.330.0130.00616.55
7.2.320.0100.01416.70
7.2.310.0070.01416.78
7.2.300.0110.00616.47
7.2.290.0130.01016.80
7.2.60.0000.01216.95
7.2.00.0000.01319.36
7.1.200.0000.01015.49
7.1.100.0090.00318.18
7.1.70.0050.00316.89
7.1.60.0210.00319.29
7.1.50.0090.01316.89
7.1.00.0070.07022.28
7.0.200.0040.00416.45
7.0.60.0030.05020.10
7.0.50.0070.08017.96
7.0.40.0130.04720.26
7.0.30.0300.03320.33
7.0.20.0230.04020.06
7.0.10.0000.04720.23
7.0.00.0070.08020.04
5.6.280.0000.07321.11
5.6.210.0000.04320.73
5.6.200.0100.08018.29
5.6.190.0070.08720.44
5.6.180.0270.05320.60
5.6.170.0100.04720.58
5.6.160.0130.07720.43
5.6.150.0070.05018.14
5.6.140.0130.07318.18
5.6.130.0030.06718.18
5.6.120.0070.04321.13
5.6.110.0070.08321.08
5.6.100.0070.08321.14
5.6.90.0130.07320.94
5.6.80.0170.06020.34
5.5.350.0000.08320.45
5.5.340.0100.08317.95
5.5.330.0170.07020.38
5.5.320.3830.04720.20
5.5.310.0270.08320.26
5.5.300.0070.08317.96
5.5.290.0000.05317.94
5.5.280.0100.05320.94
5.5.270.0070.05320.64
5.5.260.0130.08020.98
5.5.250.0170.07020.76
5.5.240.0000.05020.28
5.4.450.0700.06019.55
5.4.440.0800.05319.38
5.4.430.0800.05319.46
5.4.420.0670.06019.18
5.4.410.0770.05319.03
5.4.400.0700.05019.23
5.4.390.0700.06318.84
5.4.380.0770.05019.26
5.4.370.0800.05019.25
5.4.360.0670.05718.84
5.4.350.0700.05318.97
5.4.340.0730.05319.31
5.4.320.0870.04719.22
5.4.310.0630.05719.25
5.4.300.0700.05018.97
5.4.290.0700.05319.12
5.4.280.0700.05719.00
5.4.270.0670.05719.27
5.4.260.0670.05719.27
5.4.250.0770.04719.28
5.4.240.0700.05019.22
5.4.230.0730.04719.04
5.4.220.0700.05018.86
5.4.210.0800.04319.19
5.4.200.0800.04319.24
5.4.190.0770.06319.00
5.4.180.0830.04019.24
5.4.170.0700.05719.21
5.4.160.0570.05019.11
5.4.150.0930.05319.20
5.4.140.0770.05016.55
5.4.130.0570.05316.48
5.4.120.0130.04716.41
5.4.110.0170.04316.65
5.4.100.0400.04716.24
5.4.90.0500.06016.52
5.4.80.0430.05716.47
5.4.70.0170.03716.28
5.4.60.0000.07716.38
5.4.50.0130.06316.55
5.4.40.0200.05016.52
5.4.30.0100.04316.42
5.4.20.0200.04016.23

preferences:
41.65 ms | 401 KiB | 5 Q