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 { $a = (new A\Foo); ($a->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.0150.00718.68
8.3.50.0060.01321.25
8.3.40.0080.00819.01
8.3.30.0120.00318.81
8.3.20.0070.00020.21
8.3.10.0040.00423.53
8.3.00.0040.00420.34
8.2.180.0030.01218.42
8.2.170.0070.00722.96
8.2.160.0100.01020.57
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0000.00826.16
8.2.120.0050.00317.63
8.2.110.0070.00322.16
8.2.100.0120.00017.63
8.2.90.0040.00419.27
8.2.80.0030.00617.97
8.2.70.0040.00417.63
8.2.60.0090.00017.93
8.2.50.0000.01018.07
8.2.40.0020.00519.15
8.2.30.0020.00520.69
8.2.20.0060.00317.73
8.2.10.0030.00618.07
8.2.00.0040.00418.06
8.1.280.0150.00025.92
8.1.270.0150.00423.81
8.1.260.0100.00026.35
8.1.250.0000.00728.09
8.1.240.0030.00522.45
8.1.230.0080.00417.42
8.1.220.0000.00817.76
8.1.210.0030.00518.77
8.1.200.0060.00317.36
8.1.190.0080.00017.23
8.1.180.0000.00818.10
8.1.170.0040.00718.73
8.1.160.0030.00522.02
8.1.150.0000.00718.99
8.1.140.0040.00417.52
8.1.130.0030.00317.64
8.1.120.0040.00417.39
8.1.110.0000.00717.37
8.1.100.0080.00017.46
8.1.90.0040.00417.47
8.1.80.0070.00017.48
8.1.70.0000.00717.46
8.1.60.0000.00817.45
8.1.50.0040.00417.48
8.1.40.0060.00317.50
8.1.30.0050.00317.70
8.1.20.0040.00417.64
8.1.10.0000.00717.53
8.1.00.0050.00317.44
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0070.00018.39
8.0.270.0030.00317.12
8.0.260.0000.00717.21
8.0.250.0040.00416.84
8.0.240.0000.00616.83
8.0.230.0030.00316.95
8.0.220.0000.00716.89
8.0.210.0040.00416.90
8.0.200.0000.00816.97
8.0.190.0030.00616.99
8.0.180.0040.00417.04
8.0.170.0070.00316.98
8.0.160.0070.00016.96
8.0.150.0000.00716.90
8.0.140.0040.00316.74
8.0.130.0050.00013.38
8.0.120.0000.00816.82
8.0.110.0000.00817.02
8.0.100.0050.00216.84
8.0.90.0040.00416.79
8.0.80.0040.01116.91
8.0.70.0050.00316.85
8.0.60.0000.00916.93
8.0.50.0070.00016.90
8.0.30.0140.00416.90
8.0.20.0130.00517.40
8.0.10.0040.00417.04
8.0.00.0050.01316.83
7.4.330.0030.00315.09
7.4.320.0030.00316.44
7.4.300.0030.00316.63
7.4.290.0030.00316.50
7.4.280.0000.00716.63
7.4.270.0050.00316.58
7.4.260.0070.00016.48
7.4.250.0040.00416.46
7.4.240.0000.00716.58
7.4.230.0070.00016.41
7.4.220.0070.01316.45
7.4.210.0080.00816.56
7.4.200.0030.00316.65
7.4.160.0130.00316.55
7.4.150.0140.01017.40
7.4.140.0100.01317.86
7.4.130.0090.00916.61
7.4.120.0130.00516.59
7.4.110.0060.01016.55
7.4.100.0100.01016.55
7.4.90.0100.00816.59
7.4.80.0030.01719.39
7.4.70.0090.00916.63
7.4.60.0080.00816.67
7.4.50.0030.00616.65
7.4.40.0120.00316.60
7.4.30.0120.00916.47
7.4.00.0030.01414.93
7.3.330.0020.00213.18
7.3.320.0060.00013.36
7.3.310.0000.00716.45
7.3.300.0000.00716.36
7.3.290.0060.00816.36
7.3.280.0100.00816.37
7.3.270.0160.00017.40
7.3.260.0090.00916.40
7.3.250.0090.00916.47
7.3.240.0120.00616.32
7.3.230.0030.01316.39
7.3.210.0090.00916.43
7.3.200.0040.01416.35
7.3.190.0070.01016.46
7.3.180.0090.00616.39
7.3.170.0140.00316.35
7.3.160.0110.00616.30
7.3.120.0150.00415.02
7.3.110.0130.00314.88
7.3.100.0090.00615.07
7.3.90.0060.01214.88
7.3.80.0040.01214.83
7.3.70.0030.00614.93
7.3.60.0100.00614.80
7.3.50.0060.01214.74
7.3.40.0070.00714.88
7.3.30.0090.00614.90
7.3.20.0030.01316.71
7.3.10.0060.00916.70
7.3.00.0060.00916.77
7.2.330.0100.00716.52
7.2.320.0090.00916.45
7.2.310.0070.01116.84
7.2.300.0090.00916.78
7.2.290.0120.01016.58
7.2.250.0060.01214.66
7.2.240.0100.01014.89
7.2.230.0000.01015.04
7.2.220.0060.00615.16
7.2.210.0060.00914.78
7.2.200.0100.00715.03
7.2.190.0080.00815.13
7.2.180.0080.00815.07
7.2.170.0000.01514.84
7.2.80.0070.00316.64
7.2.60.0120.00616.97
7.1.330.0060.01015.71
7.1.320.0070.00715.90
7.1.310.0060.00615.59
7.1.300.0090.00615.95
7.1.290.0090.00315.73
7.1.280.0060.00615.86
7.1.270.0110.00415.77
7.1.260.0060.00315.48
7.1.200.0040.00415.74
7.1.100.0000.01118.32
7.1.70.0040.00717.31
7.1.60.0090.01619.29
7.1.50.0210.00316.90
7.1.00.0030.07722.44
7.0.200.0040.00416.70
7.0.60.0030.09020.05
7.0.50.0130.07317.72
7.0.40.0000.09020.02
7.0.30.0170.04320.35
7.0.20.0200.04720.12
7.0.10.0030.04320.25
7.0.00.0030.04720.19
5.6.210.0030.04720.51
5.6.200.0070.07318.14
5.6.190.0130.08020.61
5.6.180.0300.06020.63
5.6.170.0370.06720.47
5.6.160.0030.06720.48
5.6.150.0000.06318.27
5.6.140.0070.07718.25
5.6.130.0070.08318.16
5.6.120.0170.04720.98
5.6.110.0100.08321.00
5.6.100.0170.07720.98
5.6.90.0070.04321.00
5.6.80.0100.06720.29
5.5.350.0100.08320.33
5.5.340.0000.08718.09
5.5.330.0100.06320.30
5.5.320.3100.04320.42
5.5.310.0130.04720.32
5.5.300.0030.05017.97
5.5.290.0000.08317.93
5.5.280.0070.05320.99
5.5.270.0170.05320.73
5.5.260.0100.06720.80
5.5.250.0070.08020.62
5.5.240.0100.07720.28
5.4.450.0300.04719.67
5.4.440.0300.05319.57
5.4.430.0200.05319.44
5.4.420.0200.05319.57
5.4.410.0170.06019.21
5.4.400.0300.04718.84
5.4.390.0330.04319.25
5.4.380.0230.05018.84
5.4.370.0230.05018.98
5.4.360.0100.06718.88
5.4.350.0230.05019.12
5.4.340.0300.04719.15
5.4.320.0200.05319.26
5.4.310.0200.05719.05
5.4.300.0230.05018.84
5.4.290.0200.05319.25
5.4.280.0200.05719.34
5.4.270.0230.05019.25
5.4.260.0200.05319.05
5.4.250.0230.04719.11
5.4.240.0070.06719.13
5.4.230.0270.05019.13
5.4.220.0300.05019.15
5.4.210.0300.04719.28
5.4.200.0270.04719.09
5.4.190.0170.05319.14
5.4.180.0200.05319.21
5.4.170.0230.05719.14
5.4.160.0270.06019.25
5.4.150.0300.04718.96
5.4.140.0170.05316.59
5.4.130.0200.05716.34
5.4.120.0230.05016.38
5.4.110.0300.04316.33
5.4.100.0230.05016.61
5.4.90.0270.04316.26
5.4.80.0230.04316.66
5.4.70.0270.06316.58
5.4.60.0130.06716.49
5.4.50.0000.03716.51
5.4.40.0270.06716.43
5.4.30.0270.05016.50
5.4.20.0230.03716.30

preferences:
59.61 ms | 401 KiB | 5 Q