3v4l.org

run code in 300+ PHP versions simultaneously
<?php class GrandParent { public function __construct($foo) { var_dump($foo); } } class Parentx extends GrandParent { public function __construct($foo) { parent::__construct($foo); } } class Child extends Parentx { public function __construct() { parent::__construct('test'); } }

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.0030.01316.38
8.3.50.0130.00521.89
8.3.40.0070.00718.67
8.3.30.0080.00518.84
8.3.20.0040.00420.08
8.3.10.0040.00421.73
8.3.00.0000.00821.01
8.2.180.0090.01316.38
8.2.170.0060.01222.96
8.2.160.0070.00719.38
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0000.00719.41
8.2.110.0000.01021.03
8.2.100.0030.00917.38
8.2.90.0000.00719.10
8.2.80.0040.00417.97
8.2.70.0060.00317.50
8.2.60.0040.00417.43
8.2.50.0030.00618.07
8.2.40.0100.00018.03
8.2.30.0000.01017.80
8.2.20.0040.00417.42
8.2.10.0030.00617.81
8.2.00.0000.00817.57
8.1.280.0100.01025.92
8.1.270.0060.00320.52
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0040.00423.84
8.1.230.0040.00719.02
8.1.220.0000.00717.74
8.1.210.0000.00818.77
8.1.200.0000.00917.22
8.1.190.0040.00417.11
8.1.180.0030.00618.10
8.1.170.0050.00320.20
8.1.160.0000.00721.99
8.1.150.0000.00718.87
8.1.140.0040.00417.30
8.1.130.0030.00317.70
8.1.120.0000.00717.29
8.1.110.0040.00417.36
8.1.100.0040.00417.32
8.1.90.0000.00717.36
8.1.80.0040.00417.33
8.1.70.0050.00217.36
8.1.60.0000.00817.32
8.1.50.0080.00017.39
8.1.40.0030.00517.33
8.1.30.0000.00817.37
8.1.20.0050.00217.57
8.1.10.0060.00317.15
8.1.00.0040.00417.20
8.0.300.0000.00818.77
8.0.290.0000.00716.58
8.0.280.0000.00818.22
8.0.270.0000.01017.09
8.0.260.0030.00317.11
8.0.250.0030.00316.81
8.0.240.0000.00716.77
8.0.230.0000.00816.81
8.0.220.0000.00716.67
8.0.210.0030.00316.64
8.0.200.0060.00016.86
8.0.190.0000.00716.88
8.0.180.0100.00016.82
8.0.170.0000.00816.79
8.0.160.0040.00416.89
8.0.150.0040.00416.61
8.0.140.0000.00816.72
8.0.130.0000.00513.22
8.0.120.0000.00716.75
8.0.110.0070.00016.66
8.0.100.0000.00716.61
8.0.90.0000.00716.71
8.0.80.0070.01416.80
8.0.70.0040.00416.66
8.0.60.0000.00716.64
8.0.50.0000.00816.79
8.0.30.0150.00616.94
8.0.20.0080.01517.40
8.0.10.0000.00716.82
8.0.00.0110.00816.58
7.4.330.0000.00515.03
7.4.320.0060.00016.47
7.4.300.0030.00316.38
7.4.290.0000.00816.41
7.4.280.0030.00716.38
7.4.270.0000.00716.36
7.4.260.0040.00416.28
7.4.250.0040.00416.36
7.4.240.0040.00416.49
7.4.230.0080.00016.27
7.4.220.0120.00616.44
7.4.210.0050.00816.45
7.4.200.0030.00316.35
7.4.160.0090.00616.38
7.4.150.0200.00417.40
7.4.140.0100.01017.86
7.4.130.0090.00816.32
7.4.120.0110.00616.25
7.4.110.0030.01516.25
7.4.100.0090.01616.38
7.4.90.0140.00316.46
7.4.80.0030.01319.39
7.4.70.0080.00816.40
7.4.60.0060.01016.46
7.4.50.0000.00516.38
7.4.40.0080.00816.49
7.4.30.0120.00916.32
7.4.00.0040.00715.02
7.3.330.0030.00313.18
7.3.320.0060.00012.94
7.3.310.0030.00516.04
7.3.300.0080.00016.15
7.3.290.0060.00016.14
7.3.280.0070.01016.16
7.3.270.0030.01617.40
7.3.260.0140.00616.16
7.3.250.0110.01116.40
7.3.240.0090.01316.09
7.3.230.0160.00316.39
7.3.210.0060.01016.47
7.3.200.0060.01719.39
7.3.190.0100.00616.14
7.3.180.0110.01116.43
7.3.170.0120.00816.46
7.3.160.0120.00616.14
7.3.120.0060.00614.44
7.3.110.0080.00714.77
7.3.100.0090.00214.44
7.3.90.0020.01314.70
7.3.80.0040.00614.61
7.3.70.0080.00514.42
7.3.60.0090.00414.53
7.3.50.0070.00814.45
7.3.40.0020.01014.65
7.3.30.0060.00814.64
7.3.20.0090.00516.46
7.3.10.0050.00616.53
7.3.00.0080.00416.16
7.2.330.0030.01416.31
7.2.320.0060.00916.25
7.2.310.0070.01116.27
7.2.300.0100.01016.54
7.2.290.0000.01716.54
7.2.240.0090.00614.84
7.2.230.0050.00714.74
7.2.220.0070.00414.80
7.2.210.0060.00414.58
7.2.200.0080.00514.93
7.2.190.0030.00914.84
7.2.180.0050.01014.94
7.2.170.0070.00714.85
7.2.160.0030.01014.62
7.2.150.0050.01116.70
7.2.140.0060.00816.49
7.2.130.0080.00716.77
7.2.120.0030.00816.77
7.2.110.0050.01016.61
7.2.100.0050.00916.68
7.2.90.0030.01016.61
7.2.80.0140.00316.64
7.2.70.0030.01016.76
7.2.60.0120.00316.70
7.2.50.0060.00716.53
7.2.40.0020.01516.80
7.2.30.0060.00816.71
7.2.20.0030.01016.65
7.2.10.0060.00616.68
7.2.00.0060.00817.26
7.1.330.0050.00715.54
7.1.320.0010.00915.47
7.1.310.0020.01115.59
7.1.300.0080.00515.38
7.1.290.0060.00815.49
7.1.280.0050.00615.46
7.1.270.0070.00715.44
7.1.260.0010.00915.52
7.1.250.0080.00515.69
7.1.100.0070.00717.65
7.1.70.0000.00816.88
7.1.60.0070.01819.46
7.1.50.0280.00634.72
7.1.00.0030.07722.40
7.0.200.0600.00314.68
7.0.140.0000.07722.07
7.0.60.0130.05720.02
7.0.50.0030.07317.87
7.0.40.0070.07320.27
7.0.30.0330.07720.26
7.0.20.0300.07320.03
7.0.10.0130.08320.23
7.0.00.0070.08020.24
5.6.280.0030.07320.93
5.6.210.0130.06720.61
5.6.200.0030.08318.12
5.6.190.0030.04320.48
5.6.180.0470.06020.42
5.6.170.0270.05320.71
5.6.160.0070.08020.43
5.6.150.0070.04018.12
5.6.140.0000.05718.28
5.6.130.0070.05718.20
5.6.120.0070.05720.90
5.6.110.0100.06721.03
5.6.100.0030.07721.02
5.6.90.0070.07320.98
5.6.80.0070.03720.51
5.5.350.0330.06720.53
5.5.340.0030.03717.99
5.5.330.0070.07320.41
5.5.320.0130.07320.36
5.5.310.0370.05020.41
5.5.300.0030.04017.99
5.5.290.0100.07717.98
5.5.280.0100.07720.69
5.5.270.0070.04020.86
5.5.260.0130.08020.77
5.5.250.0030.04020.69
5.5.240.0100.06320.17
5.4.450.0570.06019.61
5.4.440.0430.06019.16
5.4.430.0100.08019.63
5.4.420.0130.05019.53
5.4.410.0070.06318.92
5.4.400.0200.04718.54
5.4.390.0030.06318.47
5.4.380.0130.05318.78
5.4.370.0130.05318.78
5.4.360.0130.05018.51
5.4.350.0130.05318.54
5.4.340.0130.05018.74
5.4.320.0170.05318.73
5.4.310.0130.06318.73
5.4.300.0100.05718.76
5.4.290.0030.06318.81
5.4.280.0270.04018.63
5.4.270.0130.05318.78
5.4.260.0100.05718.81
5.4.250.0100.05718.75
5.4.240.0130.05318.58
5.4.230.0100.05718.61
5.4.220.0130.05318.50
5.4.210.0130.05018.66
5.4.200.0130.05016.78
5.4.190.0030.06018.57
5.4.180.0270.03718.77
5.4.170.0070.06718.72
5.4.160.0130.05018.74
5.4.150.0170.05018.48
5.4.140.0200.04716.34
5.4.130.0100.05016.25
5.4.120.0230.04016.45
5.4.110.0030.05716.19
5.4.100.0170.05016.19
5.4.90.0070.06016.28
5.4.80.0170.04316.19
5.4.70.0100.05316.27
5.4.60.0200.04016.27
5.4.50.0100.05016.16
5.4.40.0130.05016.27
5.4.30.0200.04316.14
5.4.20.0230.04016.26
5.4.10.0130.05016.29
5.4.00.0130.04715.73
5.3.290.0130.05314.77
5.3.280.0130.05314.64
5.3.270.0170.05714.68
5.3.260.0200.05014.63
5.3.250.0070.06014.71
5.3.240.0170.05014.80
5.3.230.0100.05314.64
5.3.220.0200.04314.60
5.3.210.0170.07314.67
5.3.200.0330.05714.69
5.3.190.0230.05714.61
5.3.180.0100.05014.70
5.3.170.0170.04714.61
5.3.160.0130.05014.66
5.3.150.0130.05014.66
5.3.140.0200.04714.59
5.3.130.0230.04314.67
5.3.120.0130.05314.57
5.3.110.0200.04714.65
5.3.100.0270.03714.09
5.3.90.0130.05014.05
5.3.80.0070.05714.14
5.3.70.0170.04714.14
5.3.60.0100.05314.22
5.3.50.0170.05314.16
5.3.40.0200.04314.01
5.3.30.0030.05713.96
5.3.20.0200.04013.86
5.3.10.0130.05013.76
5.3.00.0130.05713.76
5.2.170.0070.04311.20
5.2.160.0030.04711.27
5.2.150.0070.04711.18
5.2.140.0070.04311.18
5.2.130.0130.04011.23
5.2.120.0130.03711.14
5.2.110.0230.03011.16
5.2.100.0100.03711.13
5.2.90.0170.03311.11
5.2.80.0030.04711.19
5.2.70.0170.03711.19
5.2.60.0070.04311.18
5.2.50.0130.03711.22
5.2.40.0100.04011.22
5.2.30.0070.04311.07
5.2.20.0130.03711.04
5.2.10.0070.04311.04
5.2.00.0100.04010.93
5.1.60.0100.03310.02
5.1.50.0070.03710.10
5.1.40.0100.03310.07
5.1.30.0100.03310.34
5.1.20.0100.03710.45
5.1.10.0170.04010.11
5.1.00.0000.05010.17
5.0.50.0000.0338.70
5.0.40.0030.0308.52
5.0.30.0100.0408.36
5.0.20.0100.0238.20
5.0.10.0100.0278.35
5.0.00.0070.0438.18
4.4.90.0030.0236.00
4.4.80.0070.0235.86
4.4.70.0100.0205.88
4.4.60.0030.0305.88
4.4.50.0030.0235.89
4.4.40.0030.0475.95
4.4.30.0100.0175.97
4.4.20.0070.0205.93
4.4.10.0130.0175.95
4.4.00.0030.0375.91
4.3.110.0000.0275.83
4.3.100.0000.0275.79
4.3.90.0100.0175.78
4.3.80.0030.0375.82
4.3.70.0030.0235.81
4.3.60.0000.0235.81
4.3.50.0070.0205.76
4.3.40.0030.0335.75
4.3.30.0000.0234.55
4.3.20.0030.0234.56
4.3.10.0030.0234.49
4.3.00.0030.0276.97

preferences:
51.35 ms | 401 KiB | 5 Q