3v4l.org

run code in 300+ PHP versions simultaneously
<?php class P { public function __construct($arg) { echo "Parent constructor"; } } class C extends P { public function __construct(/* no arg */) { parent::__construct(3); } } class GC extends C { public function __construct($arg1, $arg2) { parent::__construct(); } } class GGC extends GC { public function __construct(/* no args */) { parent::__construct(1, 2); } } new GC(1, 2);

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.70.0070.01418.04
8.3.60.0080.00818.43
8.3.50.0160.00616.07
8.3.40.0080.00618.54
8.3.30.0090.00618.60
8.3.20.0040.00418.60
8.3.10.0090.00019.15
8.3.00.0040.00423.66
8.2.190.0030.01516.58
8.2.180.0120.00316.37
8.2.170.0040.01122.96
8.2.160.0030.01020.26
8.2.150.0070.00024.18
8.2.140.0070.00024.66
8.2.130.0080.00019.60
8.2.120.0070.00026.35
8.2.110.0060.00621.08
8.2.100.0110.00017.91
8.2.90.0000.00819.38
8.2.80.0050.00318.98
8.2.70.0000.00817.79
8.2.60.0030.00517.63
8.2.50.0030.00617.55
8.2.40.0060.00319.17
8.2.30.0040.00419.38
8.2.20.0040.00417.80
8.2.10.0000.00717.93
8.2.00.0070.00019.36
8.1.280.0090.00625.92
8.1.270.0060.00322.13
8.1.260.0000.01126.35
8.1.250.0080.00028.09
8.1.240.0090.00019.03
8.1.230.0040.00721.03
8.1.220.0060.00317.74
8.1.210.0090.00018.77
8.1.200.0000.01017.23
8.1.190.0080.00017.10
8.1.180.0030.00518.10
8.1.170.0040.00418.46
8.1.160.0040.00418.79
8.1.150.0050.00218.80
8.1.140.0050.00217.48
8.1.130.0000.00819.05
8.1.120.0000.00717.25
8.1.110.0000.00917.20
8.1.100.0000.00717.22
8.1.90.0080.00017.16
8.1.80.0000.00817.22
8.1.70.0070.00017.27
8.1.60.0030.00617.50
8.1.50.0000.00817.34
8.1.40.0040.00417.34
8.1.30.0040.00417.41
8.1.20.0040.00417.53
8.1.10.0060.00317.52
8.1.00.0040.00417.50
8.0.300.0040.00420.16
8.0.290.0000.00916.63
8.0.280.0030.00318.35
8.0.270.0080.00017.24
8.0.260.0060.00017.29
8.0.250.0050.00216.78
8.0.240.0000.00716.93
8.0.230.0040.00416.81
8.0.220.0000.00716.61
8.0.210.0050.00216.77
8.0.200.0000.00616.79
8.0.190.0040.00416.71
8.0.180.0040.00416.78
8.0.170.0040.00416.81
8.0.160.0080.00016.64
8.0.150.0040.00416.70
8.0.140.0100.00016.66
8.0.130.0030.00313.14
8.0.120.0030.00616.60
8.0.110.0000.00716.70
8.0.100.0080.00016.71
8.0.90.0080.00016.63
8.0.80.0040.01816.79
8.0.70.0030.00516.61
8.0.60.0050.00316.58
8.0.50.0040.00416.54
8.0.30.0100.00717.09
8.0.20.0130.00517.40
8.0.10.0000.00816.80
8.0.00.0110.00616.73
7.4.330.0050.00015.55
7.4.320.0040.00416.48
7.4.300.0000.00616.52
7.4.290.0030.00316.33
7.4.280.0000.00716.41
7.4.270.0080.00016.47
7.4.260.0000.00716.46
7.4.250.0070.00016.39
7.4.240.0020.00516.54
7.4.230.0000.00716.34
7.4.220.0100.00016.55
7.4.210.0060.00916.43
7.4.200.0000.00716.28
7.4.160.0130.00516.44
7.4.140.0090.01017.86
7.4.130.0170.00716.43
7.4.120.0120.00816.48
7.4.110.0060.00916.20
7.4.100.0080.00816.40
7.4.90.0120.00616.55
7.4.80.0060.01619.39
7.4.70.0130.00316.41
7.4.60.0070.01016.50
7.4.50.0090.00916.55
7.4.40.0030.01416.64
7.4.00.0100.00715.10
7.3.330.0050.00013.24
7.3.320.0030.00313.26
7.3.310.0030.00316.08
7.3.300.0000.00716.06
7.3.290.0050.00216.20
7.3.280.0070.01016.23
7.3.260.0180.01016.27
7.3.240.0100.00716.27
7.3.230.0050.01116.44
7.3.210.0060.01216.32
7.3.200.0130.00316.27
7.3.190.0100.00716.25
7.3.180.0110.00616.48
7.3.170.0120.00616.46
7.3.160.0090.00616.42
7.3.120.0160.00014.44
7.3.110.0040.01514.60
7.3.100.0030.00914.82
7.3.90.0100.00314.66
7.3.80.0080.00414.30
7.3.70.0020.00914.70
7.3.60.0090.00614.73
7.3.50.0080.00814.49
7.3.40.0030.00714.54
7.3.30.0040.01214.57
7.3.20.0120.00016.52
7.3.10.0000.00916.26
7.3.00.0040.00716.33
7.2.330.0210.00016.54
7.2.320.0060.01316.31
7.2.310.0150.00316.44
7.2.300.0030.01616.70
7.2.290.0000.02216.39
7.2.250.0030.01314.69
7.2.240.0100.01014.75
7.2.230.0090.00614.77
7.2.220.0070.00714.93
7.2.210.0040.01115.00
7.2.200.0030.00714.70
7.2.190.0040.00414.54
7.2.180.0030.01214.93
7.2.170.0140.00014.72
7.2.60.2700.00714.67
7.2.50.2380.00814.88
7.2.40.2740.00815.22
7.2.30.2960.00515.34
7.2.20.2580.00815.36
7.2.10.2960.01115.59
7.2.00.2880.00815.35
7.1.330.0030.01015.76
7.1.320.0030.01215.61
7.1.310.0070.00715.48
7.1.300.0060.00615.68
7.1.290.0060.00315.77
7.1.280.0090.00315.64
7.1.270.0070.00715.64
7.1.260.0060.00315.62
7.1.200.0000.00715.65
7.1.170.2700.00513.68
7.1.160.2220.01016.68
7.1.150.2830.00916.64
7.1.140.2500.01116.82
7.1.130.2740.01016.84
7.1.120.3270.01016.84
7.1.110.3480.01116.16
7.1.100.3120.01116.34
7.1.90.3490.00716.05
7.1.80.3390.00916.02
7.1.70.3220.00715.27
7.1.60.2500.01533.14
7.1.50.3850.01533.00
7.1.40.4150.01232.50
7.1.30.3380.01132.49
7.1.20.3550.01132.78
7.1.10.3870.00814.48
7.1.00.0440.00914.61

preferences:
62.41 ms | 401 KiB | 5 Q