3v4l.org

run code in 300+ PHP versions simultaneously
<?php $class = new class { public function sayHi() { echo "Hello world!"; } }; $addProduct = function($id) { $this->sayHi(); }; $addProduct->call($class, 1);

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.0130.00716.75
8.3.50.0150.00017.96
8.3.40.0070.00718.84
8.3.30.0070.00718.68
8.3.20.0000.01419.98
8.3.10.0040.00423.52
8.3.00.0040.00423.52
8.2.180.0070.00718.41
8.2.170.0090.00622.96
8.2.160.0040.01120.43
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00421.11
8.2.120.0040.00426.35
8.2.110.0030.00620.96
8.2.100.0060.00617.72
8.2.90.0000.00919.22
8.2.80.0000.00817.97
8.2.70.0090.00017.50
8.2.60.0000.00817.90
8.2.50.0040.00418.09
8.2.40.0080.00022.27
8.2.30.0070.00319.32
8.2.20.0040.00417.68
8.2.10.0050.00318.12
8.2.00.0040.00418.11
8.1.280.0070.01025.92
8.1.270.0070.01122.27
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0030.00622.09
8.1.230.0090.00319.15
8.1.220.0090.00017.74
8.1.210.0040.00418.77
8.1.200.0080.00017.38
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0040.00418.66
8.1.160.0050.00320.70
8.1.150.0030.00620.68
8.1.140.0000.00819.57
8.1.130.0030.00317.67
8.1.120.0030.00317.36
8.1.110.0070.00017.35
8.1.100.0080.00317.50
8.1.90.0040.00417.35
8.1.80.0040.00417.43
8.1.70.0040.00417.45
8.1.60.0040.00417.58
8.1.50.0000.00817.54
8.1.40.0000.00817.40
8.1.30.0040.00417.67
8.1.20.0060.00317.61
8.1.10.0040.00417.56
8.1.00.0040.00417.52
8.0.300.0070.00021.57
8.0.290.0080.00016.63
8.0.280.0000.00718.40
8.0.270.0000.00717.17
8.0.260.0000.00817.30
8.0.250.0000.00716.95
8.0.240.0060.00316.93
8.0.230.0020.00516.93
8.0.220.0070.00016.90
8.0.210.0030.00316.78
8.0.200.0030.00316.84
8.0.190.0060.00316.93
8.0.180.0000.00716.88
8.0.170.0000.00816.80
8.0.160.0040.00416.95
8.0.150.0040.00416.67
8.0.140.0000.00816.86
8.0.130.0060.00013.26
8.0.120.0000.00716.85
8.0.110.0040.00416.77
8.0.100.0040.00416.86
8.0.90.0000.00716.78
8.0.80.0100.01016.88
8.0.70.0040.00416.73
8.0.60.0040.00416.92
8.0.50.0070.00016.85
8.0.30.0090.00917.09
8.0.20.0080.01017.40
8.0.10.0040.00417.02
8.0.00.0120.00716.79
7.4.330.0050.00016.73
7.4.320.0030.00316.45
7.4.300.0050.00316.40
7.4.290.0030.00316.45
7.4.280.0060.00316.60
7.4.270.0000.00716.37
7.4.260.0000.00716.55
7.4.250.0000.00716.45
7.4.240.0080.00016.48
7.4.230.0000.00716.55
7.4.220.0180.00616.57
7.4.210.0070.00816.58
7.4.200.0040.00416.68
7.4.160.0100.01016.70
7.4.150.0070.01017.40
7.4.140.0140.00817.86
7.4.130.0070.01016.37
7.4.120.0110.00816.59
7.4.110.0130.00316.43
7.4.100.0090.00816.51
7.4.90.0060.01216.48
7.4.80.0070.01319.39
7.4.70.0100.00716.39
7.4.60.0120.00416.67
7.4.50.0000.01416.70
7.4.40.0120.00416.68
7.4.30.0040.01316.34
7.4.00.0090.00614.96
7.3.330.0000.00513.16
7.3.320.0030.00313.32
7.3.310.0030.00316.33
7.3.300.0070.00016.31
7.3.290.0000.00716.20
7.3.280.0040.01216.27
7.3.270.0110.00617.40
7.3.260.0130.01016.52
7.3.250.0090.01016.31
7.3.240.0100.01016.39
7.3.230.0060.01716.46
7.3.210.0070.01116.26
7.3.200.0030.01519.39
7.3.190.0090.01216.37
7.3.180.0130.00716.46
7.3.170.0100.00616.41
7.3.160.0060.00916.37
7.2.330.0100.00716.75
7.2.320.0040.01316.77
7.2.310.0180.00716.57
7.2.300.0090.00916.67
7.2.290.0100.00716.36
7.2.80.0030.00716.54
7.2.60.0130.00317.04
7.2.00.0040.00719.50
7.1.200.0040.00415.55
7.1.100.0000.01317.86
7.1.70.0000.00817.16
7.1.60.0070.01719.40
7.1.50.0080.00417.01
7.1.00.0070.07322.54
7.0.200.0420.00614.63
7.0.60.0170.04021.77
7.0.50.0030.06017.86
7.0.40.0100.04320.10
7.0.30.0230.04020.07
7.0.20.0430.05320.24
7.0.10.0100.08320.10
7.0.00.0030.04720.25
5.6.280.0070.06320.89
5.6.210.0030.07320.68
5.6.200.0070.08018.18
5.6.190.0000.05020.60
5.6.180.0270.04020.34
5.6.170.0200.03720.50
5.6.160.0070.04020.51
5.6.150.0100.04318.20
5.6.140.0030.04018.28
5.6.130.0070.03718.17
5.6.120.0070.06020.98
5.6.110.0100.07020.98
5.6.100.0030.07020.99
5.6.90.0100.08021.00
5.6.80.0130.06720.41
5.5.350.0370.06020.41
5.5.340.0100.07717.99
5.5.330.0070.04020.57
5.5.320.0630.06720.25
5.5.310.0130.04020.23
5.5.300.0130.07317.96
5.5.290.0100.04018.01
5.5.280.0100.05720.65
5.5.270.0170.07320.84
5.5.260.0070.07720.75
5.5.250.0070.07020.64
5.5.240.0270.06020.06

preferences:
48.96 ms | 400 KiB | 5 Q