3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $callable; public function __construct() { $this->callable = function () { echo "hello world!"; }; } public function yesItDoes() { $this->callable->call($this); } } (new Foo)->yesItDoes();

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.00716.75
8.3.50.0220.00721.14
8.3.40.0030.01418.72
8.3.30.0110.00318.67
8.3.20.0000.00720.16
8.3.10.0040.00423.50
8.3.00.0040.00423.71
8.2.180.0090.00616.75
8.2.170.0180.00422.96
8.2.160.0170.00020.55
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0080.00019.77
8.2.120.0040.00426.35
8.2.110.0090.00419.38
8.2.100.0110.00017.93
8.2.90.0030.00519.26
8.2.80.0080.00017.97
8.2.70.0060.00317.75
8.2.60.0060.00317.80
8.2.50.0080.00018.07
8.2.40.0080.00320.54
8.2.30.0000.00719.42
8.2.20.0000.00717.73
8.2.10.0090.00017.97
8.2.00.0000.00718.04
8.1.280.0170.00325.92
8.1.270.0080.00023.90
8.1.260.0000.00728.09
8.1.250.0070.00028.09
8.1.240.0100.00023.96
8.1.230.0040.00819.10
8.1.220.0000.00917.74
8.1.210.0000.00818.77
8.1.200.0100.00017.23
8.1.190.0000.00917.13
8.1.180.0040.00418.10
8.1.170.0030.00518.48
8.1.160.0040.00420.60
8.1.150.0040.00418.75
8.1.140.0040.00419.56
8.1.130.0040.00417.79
8.1.120.0050.00217.44
8.1.110.0040.00417.39
8.1.100.0030.00617.41
8.1.90.0000.00817.39
8.1.80.0000.00717.36
8.1.70.0000.00717.49
8.1.60.0060.00317.51
8.1.50.0040.00417.41
8.1.40.0040.00417.39
8.1.30.0000.01117.73
8.1.20.0000.00717.54
8.1.10.0000.00717.46
8.1.00.0050.00217.40
8.0.300.0000.00818.77
8.0.290.0000.00716.63
8.0.280.0000.00718.43
8.0.270.0060.00317.19
8.0.260.0000.00717.23
8.0.250.0080.00016.92
8.0.240.0070.00016.93
8.0.230.0000.00716.77
8.0.220.0060.00316.66
8.0.210.0050.00216.80
8.0.200.0040.00416.87
8.0.190.0000.00716.85
8.0.180.0000.00816.86
8.0.170.0040.00416.90
8.0.160.0030.00516.85
8.0.150.0000.00716.84
8.0.140.0080.00016.73
8.0.130.0050.00213.29
8.0.120.0040.00716.88
8.0.110.0060.00316.76
8.0.100.0050.00316.82
8.0.90.0000.00716.68
8.0.80.0120.00316.85
8.0.70.0040.00416.76
8.0.60.0000.00716.88
8.0.50.0070.00016.70
8.0.30.0090.00917.15
8.0.20.0100.00817.40
8.0.10.0050.00317.07
8.0.00.0080.00916.58
7.4.330.0030.00316.71
7.4.320.0030.00316.43
7.4.300.0070.00016.38
7.4.290.0050.00216.29
7.4.280.0030.00616.50
7.4.270.0000.00616.58
7.4.260.0070.00016.37
7.4.250.0070.00016.49
7.4.240.0060.00116.53
7.4.230.0030.00316.25
7.4.220.0090.00916.44
7.4.210.0070.00916.52
7.4.200.0070.00016.64
7.4.160.0100.00716.49
7.4.150.0070.01117.40
7.4.140.0090.00917.86
7.4.130.0100.00916.44
7.4.120.0130.00416.49
7.4.110.0070.01016.48
7.4.100.0180.00416.41
7.4.90.0060.00916.56
7.4.80.0160.00819.39
7.4.70.0060.01316.41
7.4.60.0120.00316.43
7.4.50.0070.01016.30
7.4.40.0030.01216.25
7.4.30.0040.01816.57
7.4.00.0000.01714.63
7.3.330.0030.00313.13
7.3.320.0050.00013.16
7.3.310.0080.00016.25
7.3.300.0000.00716.34
7.3.290.0080.00016.30
7.3.280.0090.00916.28
7.3.270.0060.01317.40
7.3.260.0120.00616.53
7.3.240.0050.01516.48
7.3.230.0120.00616.57
7.3.210.0110.00516.30
7.3.200.0150.00819.39
7.3.190.0100.00716.43
7.3.180.0080.01316.19
7.3.170.0130.01016.48
7.3.160.0090.00916.35
7.2.330.0110.01116.71
7.2.320.0100.01016.56
7.2.310.0160.00916.49
7.2.300.0100.00716.48
7.2.290.0110.00516.72
7.2.80.0100.00716.63
7.2.60.0070.00716.75
7.2.00.0070.00719.61
7.1.200.0080.00415.50
7.1.70.0060.00816.95
7.1.60.0000.01017.15
7.1.50.0100.01316.88
7.1.00.0070.07322.28
7.0.200.0060.01216.83
7.0.100.0000.04319.96
7.0.90.0070.04319.86
7.0.80.0170.04019.87
7.0.70.0070.04319.97
7.0.60.0070.04319.93
7.0.50.0100.03320.27
7.0.40.0000.04720.00
7.0.30.0000.04719.99
7.0.20.0070.04320.06
7.0.10.0070.04019.95
7.0.00.0030.04320.05
5.6.280.0000.03321.11
5.6.250.0030.05020.51
5.6.240.0000.05020.63
5.6.230.0100.03720.52
5.6.220.0030.04720.59
5.6.210.0070.04020.68
5.6.200.0070.04020.93
5.6.190.0000.04720.95
5.6.180.0030.04721.08
5.6.170.0030.04321.01
5.6.160.0100.04021.02
5.6.150.0070.03721.12
5.6.140.0070.04021.02
5.6.130.0030.04321.14
5.6.120.0030.03721.02
5.6.110.0000.04721.10
5.6.100.0100.03321.03
5.6.90.0070.04021.03
5.6.80.0100.03720.35
5.6.70.0000.04020.35
5.6.60.0000.04320.32
5.6.50.0070.03320.42
5.6.40.0170.07320.39
5.6.30.0100.07020.51
5.6.20.0100.07320.37
5.6.10.0100.07320.45
5.6.00.0100.07720.38
5.5.380.0030.04020.46
5.5.370.0000.04320.39
5.5.360.0070.04020.40
5.5.350.0030.04720.44
5.5.340.0000.04720.82
5.5.330.0070.04020.94
5.5.320.0030.04020.90
5.5.310.0000.04720.75
5.5.300.0030.04020.88
5.5.290.0030.04320.65
5.5.280.0030.04720.93
5.5.270.0070.06720.93
5.5.260.0030.04020.86
5.5.250.0070.03720.66
5.5.240.0000.04720.13
5.5.230.0130.07720.29
5.5.220.0100.05020.25
5.5.210.0030.08020.28
5.5.200.0030.07019.98
5.5.190.0070.08020.27
5.5.180.0070.05020.24
5.5.160.0070.04720.25
5.5.150.0070.08020.27
5.5.140.0170.06720.12
5.5.130.0030.08320.18
5.5.120.0070.06720.00
5.5.110.0030.05019.96
5.5.100.0070.07720.00
5.5.90.0030.07720.11
5.5.80.0100.06720.18
5.5.70.0070.06720.11
5.5.60.0100.07319.97
5.5.50.0100.07020.13
5.5.40.0070.07320.11
5.5.30.0030.08720.18
5.5.20.0170.04720.16
5.5.10.0100.06320.04
5.5.00.0130.06019.98

preferences:
28.62 ms | 401 KiB | 5 Q