3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function __construct() { $this->hello("John"); } public function hello($name) { echo "Hello, $name", PHP_EOL; } } class B extends A { public function hello($name) { call_user_func_array(array(parent, "hello"), array("Smith")); } } new B();

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.00416.75
8.3.50.0130.00821.04
8.3.40.0060.01218.84
8.3.30.0120.00318.71
8.3.20.0080.00020.16
8.3.10.0040.00423.61
8.3.00.0080.00017.92
8.2.180.0140.00018.54
8.2.170.0110.00422.96
8.2.160.0150.00020.37
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0080.00019.48
8.2.110.0070.00321.97
8.2.100.0070.00417.91
8.2.90.0030.00518.91
8.2.80.0000.00817.97
8.2.70.0040.00417.38
8.2.60.0040.00418.05
8.2.50.0000.00818.07
8.2.40.0030.00521.07
8.2.30.0040.00420.64
8.2.20.0050.00317.69
8.2.10.0050.00217.93
8.2.00.0000.00818.05
8.1.280.0150.00025.92
8.1.270.0120.00623.95
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.92
8.1.230.0040.00817.52
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0110.00017.23
8.1.180.0040.00418.10
8.1.170.0080.00020.37
8.1.160.0080.00021.92
8.1.150.0040.00418.86
8.1.140.0040.00419.65
8.1.130.0040.00417.66
8.1.120.0000.00717.42
8.1.110.0050.00317.43
8.1.100.0040.00417.39
8.1.90.0040.00417.36
8.1.80.0020.00517.28
8.1.70.0040.00417.39
8.1.60.0030.00617.55
8.1.50.0000.00817.35
8.1.40.0000.00817.43
8.1.30.0040.00417.48
8.1.20.0000.00817.61
8.1.10.0040.00417.47
8.1.00.0000.00817.33
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0030.00318.48
8.0.270.0000.00717.30
8.0.260.0080.00017.18
8.0.250.0040.00416.93
8.0.240.0040.00417.02
8.0.230.0000.00817.02
8.0.220.0030.00316.91
8.0.210.0000.00716.88
8.0.200.0030.00316.90
8.0.190.0030.00616.91
8.0.180.0040.00416.87
8.0.170.0070.00016.99
8.0.160.0040.00416.97
8.0.150.0030.00316.84
8.0.140.0000.00816.80
8.0.130.0030.00313.33
8.0.120.0080.00016.93
8.0.110.0030.00517.05
8.0.100.0030.00516.77
8.0.90.0040.00416.77
8.0.80.0030.01316.99
8.0.70.0070.00016.98
8.0.60.0000.00716.75
8.0.50.0040.00417.01
8.0.30.0080.00717.07
8.0.20.0110.00917.40
8.0.10.0070.00016.81
8.0.00.0120.00816.58
7.4.330.0000.00615.09
7.4.320.0000.00616.50
7.4.300.0030.00316.41
7.4.290.0000.00716.60
7.4.280.0080.00016.50
7.4.270.0000.00716.53
7.4.260.0040.00416.50
7.4.250.0040.00416.38
7.4.240.0000.00716.60
7.4.230.0000.00716.63
7.4.220.0080.01316.53
7.4.210.0100.01016.68
7.4.200.0000.00716.62
7.4.160.0130.00316.65
7.4.150.0060.01217.40
7.4.140.0100.01317.86
7.4.130.0080.00816.54
7.4.120.0130.00316.57
7.4.110.0090.00916.33
7.4.100.0160.00716.41
7.4.90.0130.00616.43
7.4.80.0150.00319.39
7.4.70.0060.01116.48
7.4.60.0100.00616.36
7.4.50.0000.00516.38
7.4.40.0000.01616.45
7.4.30.0100.01316.72
7.4.00.0060.01014.58
7.3.330.0000.00613.29
7.3.320.0030.00313.30
7.3.310.0000.00616.28
7.3.300.0030.00316.48
7.3.290.0100.00816.37
7.3.280.0090.01016.38
7.3.270.0070.01017.40
7.3.260.0150.00416.38
7.3.250.0100.00716.44
7.3.240.0140.00516.35
7.3.230.0040.01216.39
7.3.210.0100.00616.50
7.3.200.0070.01116.39
7.3.190.0130.00316.54
7.3.180.0080.00816.60
7.3.170.0070.00716.42
7.3.160.0090.00616.58
7.2.330.0140.00416.60
7.2.320.0170.00016.77
7.2.310.0140.00416.66
7.2.300.0090.00916.43
7.2.290.0060.01616.89
7.2.60.0080.00416.68
7.2.00.0100.00719.46
7.1.200.0070.00715.74
7.1.100.0000.01318.04
7.1.70.0050.00517.11
7.1.60.0090.01519.50
7.1.50.0170.02034.48
7.1.00.0070.07322.43
7.0.200.0100.00314.98
7.0.60.0070.07019.86
7.0.50.0000.04317.84
7.0.40.0030.06320.30
7.0.30.0330.04720.25
7.0.20.0300.04020.14
7.0.10.0170.07720.30
7.0.00.0070.08020.20
5.6.280.0030.03321.08
5.6.210.0130.08020.63
5.6.200.0100.03718.15
5.6.190.0100.03720.61
5.6.180.0330.05320.68
5.6.170.0230.03320.56
5.6.160.0000.09020.61
5.6.150.0100.06318.29
5.6.140.0130.07018.23
5.6.130.0170.06718.16
5.6.120.0170.07721.02
5.6.110.0100.07021.00
5.6.100.0070.09021.05
5.6.90.0100.07721.14
5.6.80.0000.04320.52
5.5.350.0000.06320.48
5.5.340.0100.06317.98
5.5.330.0070.03720.21
5.5.320.3030.04020.30
5.5.310.0170.05020.41
5.5.300.0130.06718.01
5.5.290.0070.07318.07
5.5.280.0200.05320.63
5.5.270.0100.07320.97
5.5.260.0270.06320.77
5.5.250.0100.07320.55
5.5.240.0100.07720.37
5.4.450.0900.05019.45
5.4.440.0730.06319.58
5.4.430.0900.05719.46
5.4.420.0830.05019.56
5.4.410.0830.05019.35
5.4.400.1000.05019.14
5.4.390.0870.06319.38
5.4.380.0870.06319.26
5.4.370.0900.05319.15
5.4.360.0770.05718.98
5.4.350.0800.05319.38
5.4.340.0870.05319.13
5.4.320.0800.05719.01
5.4.310.0800.05019.28
5.4.300.0730.06319.05
5.4.290.0800.05019.15
5.4.280.0770.06019.28
5.4.270.0800.04719.12
5.4.260.0770.05319.32
5.4.250.0770.04719.22
5.4.240.0800.05319.00
5.4.230.0770.06319.37
5.4.220.0730.05718.98
5.4.210.0800.05019.21
5.4.200.0870.04719.37
5.4.190.0900.04019.19
5.4.180.0830.05319.29
5.4.170.0870.05019.36
5.4.160.0700.05719.20
5.4.150.0900.06319.26
5.4.140.0970.05316.39
5.4.130.0770.05016.58
5.4.120.0200.05716.38
5.4.110.0100.06316.57
5.4.100.0100.04716.50
5.4.90.0530.04016.57
5.4.80.0770.05316.55
5.4.70.0270.04016.49
5.4.60.0030.04316.56
5.4.50.0000.07716.34
5.4.40.0170.04716.48
5.4.30.0270.05016.53
5.4.20.0030.07316.37

preferences:
49.91 ms | 401 KiB | 5 Q