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('p'); } } (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.0140.00416.88
8.3.50.0110.01021.28
8.3.40.0110.01118.67
8.3.30.0070.00718.83
8.3.20.0060.00320.30
8.3.10.0000.00821.77
8.3.00.0000.00723.52
8.2.180.0160.00318.54
8.2.170.0140.00722.96
8.2.160.0100.00320.21
8.2.150.0070.00024.18
8.2.140.0070.00324.66
8.2.130.0040.00419.64
8.2.120.0040.00426.35
8.2.110.0000.01020.99
8.2.100.0080.00317.93
8.2.90.0040.00419.05
8.2.80.0000.00817.97
8.2.70.0060.00317.50
8.2.60.0000.00817.93
8.2.50.0060.00318.07
8.2.40.0030.00620.59
8.2.30.0040.00419.46
8.2.20.0030.00617.79
8.2.10.0040.00718.06
8.2.00.0040.00418.07
8.1.280.0040.01125.92
8.1.270.0080.00023.93
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0040.00423.83
8.1.230.0070.00419.09
8.1.220.0000.00817.74
8.1.210.0100.00018.77
8.1.200.0080.00017.35
8.1.190.0030.00517.25
8.1.180.0040.00418.10
8.1.170.0040.00418.51
8.1.160.0050.00220.76
8.1.150.0030.00718.84
8.1.140.0030.00519.58
8.1.130.0000.00717.73
8.1.120.0040.00417.49
8.1.110.0080.00017.37
8.1.100.0000.00817.52
8.1.90.0030.00517.46
8.1.80.0000.00917.36
8.1.70.0000.00817.46
8.1.60.0040.00417.63
8.1.50.0030.00617.57
8.1.40.0000.00817.40
8.1.30.0070.00417.62
8.1.20.0040.00417.55
8.1.10.0050.00217.55
8.1.00.0040.00417.55
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0000.00718.39
8.0.270.0060.00317.06
8.0.260.0000.00617.18
8.0.250.0040.00416.86
8.0.240.0030.00316.96
8.0.230.0070.00016.98
8.0.220.0000.00716.82
8.0.210.0030.00316.88
8.0.200.0000.00617.07
8.0.190.0000.00717.05
8.0.180.0030.00716.86
8.0.170.0000.00816.87
8.0.160.0070.00016.97
8.0.150.0000.00816.80
8.0.140.0040.00416.93
8.0.130.0000.00613.41
8.0.120.0000.00816.95
8.0.110.0050.00216.93
8.0.100.0060.00316.98
8.0.90.0000.00716.75
8.0.80.0070.00716.84
8.0.70.0040.00416.99
8.0.60.0070.00016.82
8.0.50.0040.00416.91
8.0.30.0080.01017.11
8.0.20.0100.01117.40
8.0.10.0000.00817.10
8.0.00.0120.01116.72
7.4.330.0050.00016.74
7.4.320.0060.00016.43
7.4.300.0000.00816.29
7.4.290.0030.00316.43
7.4.280.0090.00016.41
7.4.270.0030.00316.52
7.4.260.0030.00316.44
7.4.250.0040.00416.50
7.4.240.0040.00416.43
7.4.230.0050.00216.34
7.4.220.0060.01216.51
7.4.210.0070.00716.46
7.4.200.0000.00716.51
7.4.160.0130.00316.44
7.4.150.0150.00417.40
7.4.140.0110.00817.86
7.4.130.0150.00416.55
7.4.120.0110.00716.48
7.4.110.0120.00616.38
7.4.100.0130.00516.61
7.4.90.0030.01516.50
7.4.80.0090.01319.39
7.4.70.0140.00416.68
7.4.60.0070.01016.55
7.4.50.0100.00616.49
7.4.40.0130.00816.37
7.4.30.0120.00616.49
7.4.00.0070.01014.91
7.3.330.0050.00013.14
7.3.320.0050.00013.37
7.3.310.0070.00016.39
7.3.300.0000.00716.21
7.3.290.0060.00016.31
7.3.280.0070.01216.33
7.3.270.0100.00617.40
7.3.260.0060.01016.46
7.3.250.0110.00816.33
7.3.240.0120.00716.41
7.3.230.0110.00716.44
7.3.210.0030.01316.43
7.3.200.0120.00619.39
7.3.190.0080.00816.57
7.3.180.0090.01216.32
7.3.170.0090.00616.52
7.3.160.0030.01216.31
7.2.330.0060.01216.64
7.2.320.0100.00716.52
7.2.310.0080.00816.70
7.2.300.0150.00916.72
7.2.290.0100.00716.64
7.2.60.0000.01516.69
7.2.00.0030.00619.16
7.1.200.0040.00415.63
7.1.100.0000.01317.91
7.1.70.0000.01116.80
7.1.60.0030.01419.18
7.1.50.0140.00016.93
7.1.00.0070.07322.40
7.0.200.0030.00616.67
7.0.60.0200.07721.82
7.0.50.0170.07317.88
7.0.40.0070.04320.21
7.0.30.0230.04020.07
7.0.20.0400.05020.09
7.0.10.0030.04320.07
7.0.00.0070.08320.05
5.6.280.0030.05721.08
5.6.210.0070.07720.71
5.6.200.0070.06318.18
5.6.190.0130.07320.66
5.6.180.0430.07320.77
5.6.170.0300.06020.54
5.6.160.0100.08020.44
5.6.150.0130.07018.25
5.6.140.0030.04018.21
5.6.130.0070.06318.17
5.6.120.0070.08321.02
5.6.110.0130.07321.03
5.6.100.0200.06721.09
5.6.90.0030.08021.04
5.6.80.0030.06320.39
5.5.350.0170.07720.36
5.5.340.0070.03717.96
5.5.330.0200.07720.57
5.5.320.0500.07320.36
5.5.310.0330.04020.28
5.5.300.0030.05018.04
5.5.290.0070.03717.99
5.5.280.0170.07020.89
5.5.270.0100.08020.68
5.5.260.0130.07320.87
5.5.250.0000.04720.69
5.5.240.0070.03320.24

preferences:
54.01 ms | 401 KiB | 5 Q