3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test1 { public function __construct($a, $b) {} public function foo($c) {} } class Test2 extends Test1 { public function __construct($e, $f, $g) {} public function foo($c, $d) {} } $bla = new Test2(1, 2, 3); $bla->foo(4, 5);

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.0090.00516.75
8.3.50.0090.01121.91
8.3.40.0110.00418.84
8.3.30.0110.00418.71
8.3.20.0080.00020.39
8.3.10.0040.00423.35
8.3.00.0040.00419.25
8.2.180.0090.00616.38
8.2.170.0150.00622.96
8.2.160.0100.00320.43
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0030.00617.13
8.2.120.0080.00026.35
8.2.110.0060.00320.35
8.2.100.0000.01217.80
8.2.90.0000.00819.11
8.2.80.0090.00017.97
8.2.70.0040.00417.50
8.2.60.0000.00817.80
8.2.50.0040.00418.07
8.2.40.0050.00319.46
8.2.30.0040.00420.62
8.2.20.0040.00417.49
8.2.10.0050.00317.98
8.2.00.0070.00017.86
8.1.280.0070.00725.92
8.1.270.0000.00923.97
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0060.00323.96
8.1.230.0090.00317.64
8.1.220.0000.00717.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0030.00617.23
8.1.180.0000.00718.10
8.1.170.0040.00418.58
8.1.160.0000.00721.99
8.1.150.0000.00718.67
8.1.140.0040.00419.45
8.1.130.0000.00817.56
8.1.120.0030.00617.20
8.1.110.0070.00017.31
8.1.100.0040.00417.27
8.1.90.0070.00017.36
8.1.80.0000.00817.35
8.1.70.0070.00017.26
8.1.60.0020.00517.50
8.1.50.0050.00317.40
8.1.40.0000.01017.37
8.1.30.0080.00017.59
8.1.20.0000.00817.47
8.1.10.0050.00317.39
8.1.00.0030.00617.33
8.0.300.0000.00718.77
8.0.290.0070.00016.75
8.0.280.0000.00818.20
8.0.270.0000.00717.16
8.0.260.0000.00617.14
8.0.250.0000.00716.88
8.0.240.0000.00716.91
8.0.230.0000.00716.84
8.0.220.0030.00316.80
8.0.210.0040.00416.86
8.0.200.0030.00316.78
8.0.190.0040.00316.86
8.0.180.0040.00416.93
8.0.170.0040.00416.74
8.0.160.0070.00016.89
8.0.150.0000.00716.77
8.0.140.0030.00316.73
8.0.130.0050.00013.21
8.0.120.0080.00016.80
8.0.110.0000.00716.73
8.0.100.0040.00416.89
8.0.90.0040.00416.79
8.0.80.0130.01016.86
8.0.70.0000.00816.69
8.0.60.0040.00416.86
8.0.50.0000.00716.62
8.0.30.0060.01216.96
8.0.20.0110.00717.40
8.0.10.0000.00716.93
8.0.00.0110.00616.64
7.4.330.0020.00216.67
7.4.320.0030.00316.52
7.4.300.0060.00016.50
7.4.290.0040.00416.53
7.4.280.0040.00416.50
7.4.270.0070.00016.56
7.4.260.0030.00316.50
7.4.250.0020.00516.45
7.4.240.0040.00416.43
7.4.230.0000.00716.42
7.4.220.0100.01416.46
7.4.210.0070.00816.62
7.4.200.0000.00716.48
7.4.160.0030.01416.42
7.4.150.0160.00317.40
7.4.140.0080.01217.86
7.4.130.0120.00516.44
7.4.120.0080.00816.53
7.4.110.0120.00716.46
7.4.100.0060.01616.57
7.4.90.0030.01316.62
7.4.80.0100.00719.39
7.4.70.0070.01016.62
7.4.60.0090.00816.40
7.4.50.0150.00416.55
7.4.40.0060.00916.41
7.4.30.0100.00616.66
7.4.00.0050.00614.67
7.3.330.0000.00613.30
7.3.320.0000.00513.28
7.3.310.0040.00416.33
7.3.300.0000.00716.25
7.3.290.0040.00416.29
7.3.280.0070.01116.25
7.3.270.0090.00917.40
7.3.260.0060.01016.17
7.3.250.0130.01216.36
7.3.240.0130.00516.35
7.3.230.0070.01116.39
7.3.210.0090.00916.34
7.3.200.0100.00716.24
7.3.190.0200.00016.14
7.3.180.0180.00316.31
7.3.170.0100.00616.49
7.3.160.0090.00616.44
7.3.10.0100.00716.63
7.3.00.0040.01216.44
7.2.330.0000.01816.27
7.2.320.0110.01116.48
7.2.310.0060.01316.64
7.2.300.0100.00716.48
7.2.290.0090.00916.36
7.2.130.0060.00616.84
7.2.120.0000.01416.80
7.2.110.0030.01216.88
7.2.100.0060.00616.89
7.2.90.0030.00916.72
7.2.80.0000.01116.45
7.2.70.0030.00716.82
7.2.60.0030.01016.80
7.2.50.0030.00716.54
7.2.40.0060.00916.75
7.2.30.0080.00516.58
7.2.20.0080.00416.75
7.2.10.0000.01416.91
7.2.00.0070.00718.14
7.1.250.0070.00715.64
7.1.200.0120.00015.52
7.1.100.0030.01017.82
7.1.70.0040.00417.07
7.1.60.0070.01819.48
7.1.50.0040.01816.70
7.1.00.0030.07722.54
7.0.200.0180.00314.67
7.0.60.0130.04019.85
7.0.50.0170.07317.98
7.0.40.0000.07720.11
7.0.30.0330.07720.34
7.0.20.0200.04320.12
7.0.10.0070.05720.33
7.0.00.0070.04720.16
5.6.280.0070.06721.07
5.6.210.0170.07020.57
5.6.200.0030.05318.13
5.6.190.0030.05720.48
5.6.180.0300.08320.43
5.6.170.0270.07020.54
5.6.160.0030.07720.52
5.6.150.0070.08318.21
5.6.140.0000.05318.25
5.6.130.0070.04018.28
5.6.120.0130.05321.01
5.6.110.0200.07020.97
5.6.100.0070.08320.99
5.6.90.0100.08020.98
5.6.80.0070.07320.38
5.5.350.4370.04020.47
5.5.340.0200.06017.95
5.5.330.0030.05320.22
5.5.320.0030.07720.21
5.5.310.0270.08320.32
5.5.300.0030.08017.94
5.5.290.0070.08718.03
5.5.280.0170.07720.77
5.5.270.0100.06320.73
5.5.260.0100.08720.77
5.5.250.0100.07720.55
5.5.240.0130.03320.34

preferences:
43.85 ms | 401 KiB | 5 Q