3v4l.org

run code in 300+ PHP versions simultaneously
<?php $class = new class { public function sayHi() { return "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.00916.50
8.3.50.0100.01021.11
8.3.40.0100.01018.53
8.3.30.0120.00318.54
8.3.20.0120.00320.27
8.3.10.0040.00423.66
8.3.00.0040.00423.52
8.2.180.0040.01118.16
8.2.170.0140.00722.96
8.2.160.0100.00320.58
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00421.12
8.2.120.0000.00726.35
8.2.110.0030.00721.11
8.2.100.0040.00717.80
8.2.90.0000.00819.10
8.2.80.0060.00317.97
8.2.70.0000.00917.63
8.2.60.0030.00617.80
8.2.50.0040.00418.09
8.2.40.0050.00322.15
8.2.30.0060.00319.39
8.2.20.0070.00417.75
8.2.10.0040.00417.94
8.2.00.0040.00418.06
8.1.280.0090.00625.92
8.1.270.0110.00722.25
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0030.00622.38
8.1.230.0110.00017.82
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0000.01017.11
8.1.190.0000.00817.13
8.1.180.0030.00518.10
8.1.170.0000.00818.42
8.1.160.0040.00420.77
8.1.150.0040.00420.66
8.1.140.0040.00419.45
8.1.130.0040.00417.75
8.1.120.0020.00517.36
8.1.110.0000.00717.41
8.1.100.0040.00417.53
8.1.90.0040.00417.45
8.1.80.0040.00417.48
8.1.70.0060.00017.34
8.1.60.0040.00417.66
8.1.50.0030.00517.59
8.1.40.0070.00317.58
8.1.30.0040.00417.57
8.1.20.0050.00217.62
8.1.10.0000.00717.45
8.1.00.0040.00417.34
8.0.300.0000.00818.77
8.0.290.0000.00716.63
8.0.280.0030.00318.43
8.0.270.0000.00817.26
8.0.260.0000.00617.26
8.0.250.0000.00716.91
8.0.240.0060.00316.81
8.0.230.0070.00016.93
8.0.220.0070.00016.92
8.0.210.0070.00016.75
8.0.200.0070.00016.95
8.0.190.0030.00516.79
8.0.180.0000.00816.90
8.0.170.0070.00016.95
8.0.160.0040.00416.98
8.0.150.0040.00416.82
8.0.140.0000.00716.82
8.0.130.0000.00813.32
8.0.120.0030.00616.83
8.0.110.0000.00816.82
8.0.100.0060.00316.78
8.0.90.0040.00416.75
8.0.80.0030.01316.93
8.0.70.0000.00716.73
8.0.60.0050.00316.74
8.0.50.0000.00816.91
8.0.30.0110.00616.93
8.0.20.0070.01117.40
8.0.10.0000.00716.94
8.0.00.0110.01016.79
7.4.330.0020.00216.77
7.4.320.0050.00216.43
7.4.300.0070.00016.59
7.4.290.0030.00316.61
7.4.280.0040.00416.48
7.4.270.0070.00016.56
7.4.260.0030.00316.55
7.4.250.0000.00816.44
7.4.240.0000.00716.48
7.4.230.0040.00416.70
7.4.220.0090.01416.68
7.4.210.0060.01216.59
7.4.200.0050.00216.38
7.4.160.0140.00616.50
7.4.150.0160.00317.40
7.4.140.0180.00717.86
7.4.130.0140.01116.45
7.4.120.0120.00916.53
7.4.110.0110.00616.51
7.4.100.0100.00716.29
7.4.90.0100.00916.59
7.4.80.0130.00319.39
7.4.70.0090.00916.48
7.4.60.0100.00616.57
7.4.50.0070.00716.41
7.4.40.0110.00616.72
7.4.30.0110.01016.40
7.4.00.0090.00615.11
7.3.330.0000.00513.26
7.3.320.0050.00013.14
7.3.310.0030.00316.29
7.3.300.0000.00716.17
7.3.290.0030.00316.29
7.3.280.0070.00916.28
7.3.270.0070.01017.40
7.3.260.0030.01316.38
7.3.240.0100.00716.21
7.3.230.0110.00916.50
7.3.210.0100.00716.28
7.3.200.0100.00716.26
7.3.190.0030.01316.39
7.3.180.0100.01016.61
7.3.170.0000.01616.48
7.3.160.0090.00616.42
7.2.330.0060.01316.74
7.2.320.0080.00816.68
7.2.310.0110.00816.45
7.2.300.0120.00616.35
7.2.290.0060.01016.74
7.2.60.0090.00316.90
7.1.200.0090.00315.71
7.1.100.0070.00418.13
7.1.70.0040.00417.23
7.1.60.0140.01019.40
7.1.50.0040.00716.80
7.1.00.0030.07722.30
7.0.200.0460.01014.38
7.0.60.0230.03321.66
7.0.50.0070.05017.85
7.0.40.0070.05020.10
7.0.30.0330.04320.33
7.0.20.0400.07720.19
7.0.10.0070.07020.12
7.0.00.0100.08320.18
5.6.280.0030.07021.02
5.6.210.0130.07320.69
5.6.200.0100.07718.29
5.6.190.0100.08020.63
5.6.180.0230.06320.46
5.6.170.0170.04020.51
5.6.160.0070.06320.66
5.6.150.0130.07318.21
5.6.140.0030.04018.16
5.6.130.0030.04018.19
5.6.120.0070.07321.14
5.6.110.0030.07721.00
5.6.100.0030.08720.95
5.6.90.0130.08720.87
5.6.80.0100.08020.42
5.5.350.0330.07020.44
5.5.340.0070.07017.98
5.5.330.0070.04020.41
5.5.320.0570.06320.32
5.5.310.0170.04020.30
5.5.300.0070.04017.98
5.5.290.0100.04317.98
5.5.280.0100.08320.65
5.5.270.0130.07720.86
5.5.260.0070.08320.86
5.5.250.0070.08020.61
5.5.240.0270.06020.06

preferences:
72.92 ms | 401 KiB | 5 Q