3v4l.org

run code in 300+ PHP versions simultaneously
<?php class GrandParent { public function __construct($foo) { var_dump(__CLASS__); var_dump($foo); } } class Parentx extends GrandParent { public function __construct($foo) { var_dump(__CLASS__); parent::__construct($foo); } } class Child extends Parentx { public function __construct() { var_dump(__CLASS__); 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.0090.00616.75
8.3.50.0150.00321.99
8.3.40.0120.00318.51
8.3.30.0140.00019.09
8.3.20.0000.00720.13
8.3.10.0060.00321.89
8.3.00.0050.00320.92
8.2.180.0090.01216.38
8.2.170.0170.00022.96
8.2.160.0100.01019.26
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00419.54
8.2.110.0070.00320.94
8.2.100.0060.00617.63
8.2.90.0050.00219.11
8.2.80.0030.00517.97
8.2.70.0040.00417.13
8.2.60.0090.00017.67
8.2.50.0000.00818.07
8.2.40.0000.00917.96
8.2.30.0000.00917.88
8.2.20.0080.00017.43
8.2.10.0040.00417.93
8.2.00.0050.00217.53
8.1.280.0100.00725.92
8.1.270.0060.00320.48
8.1.260.0060.00326.35
8.1.250.0000.00828.09
8.1.240.0050.00524.02
8.1.230.0090.00318.77
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00317.11
8.1.190.0060.00317.13
8.1.180.0070.00318.10
8.1.170.0040.00420.22
8.1.160.0040.00421.95
8.1.150.0050.00218.80
8.1.140.0050.00317.28
8.1.130.0070.00017.77
8.1.120.0040.00417.33
8.1.110.0070.00017.34
8.1.100.0040.00317.20
8.1.90.0040.00417.32
8.1.80.0040.00417.18
8.1.70.0050.00217.32
8.1.60.0000.00917.46
8.1.50.0030.00517.39
8.1.40.0000.00817.38
8.1.30.0000.00817.57
8.1.20.0040.00417.45
8.1.10.0060.00317.23
8.1.00.0070.00017.29
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0040.00418.34
8.0.270.0000.00817.13
8.0.260.0000.00617.02
8.0.250.0000.00616.84
8.0.240.0050.00316.79
8.0.230.0040.00416.72
8.0.220.0070.00016.74
8.0.210.0070.00016.82
8.0.200.0030.00316.82
8.0.190.0070.00016.84
8.0.180.0050.00516.76
8.0.170.0000.00816.76
8.0.160.0000.00716.79
8.0.150.0030.00316.63
8.0.140.0000.00716.76
8.0.130.0030.00313.24
8.0.120.0000.00716.74
8.0.110.0000.00816.81
8.0.100.0040.00416.80
8.0.90.0000.00716.67
8.0.80.0150.00616.82
8.0.70.0040.00416.55
8.0.60.0000.00816.81
8.0.50.0000.00716.71
8.0.30.0110.00817.05
8.0.20.0120.00817.40
8.0.10.0000.00716.69
8.0.00.0080.00916.58
7.4.330.0050.00015.03
7.4.320.0000.00616.32
7.4.300.0060.00016.37
7.4.290.0050.00516.48
7.4.280.0030.00816.28
7.4.270.0030.00316.29
7.4.260.0000.00716.27
7.4.250.0030.00516.34
7.4.240.0020.00516.38
7.4.230.0040.00416.48
7.4.220.0150.00316.49
7.4.210.0070.00716.41
7.4.200.0030.00316.59
7.4.160.0190.00316.34
7.4.150.0120.01217.40
7.4.140.0090.00817.86
7.4.130.0080.01016.55
7.4.120.0100.00716.37
7.4.110.0090.00916.18
7.4.100.0160.00716.46
7.4.90.0030.01416.39
7.4.80.0070.01119.39
7.4.70.0120.00316.24
7.4.60.0090.00916.29
7.4.50.0060.00316.39
7.4.40.0090.00616.52
7.4.30.0130.00616.24
7.4.00.0040.00714.68
7.3.330.0000.00613.16
7.3.320.0020.00213.25
7.3.310.0000.00716.27
7.3.300.0000.00716.16
7.3.290.0030.00316.14
7.3.280.0070.01016.13
7.3.270.0030.01317.40
7.3.260.0120.01216.18
7.3.250.0140.00416.26
7.3.240.0120.00316.39
7.3.230.0100.00716.39
7.3.210.0070.01416.29
7.3.200.0030.01619.39
7.3.190.0040.01116.44
7.3.180.0100.00716.13
7.3.170.0080.00816.27
7.3.160.0100.00716.29
7.3.10.0060.00616.25
7.3.00.0120.00316.07
7.2.330.0290.01316.15
7.2.320.0060.00916.47
7.2.310.0060.01116.30
7.2.300.0100.01016.50
7.2.290.0130.00316.36
7.2.130.0130.00616.41
7.2.120.0100.00716.15
7.2.110.0050.00916.08
7.2.100.0120.00315.90
7.2.90.0140.00016.29
7.2.80.0100.00316.07
7.2.70.0030.00716.53
7.2.60.0000.01316.15
7.2.50.0070.00316.31
7.2.40.0190.00016.11
7.2.30.0070.00716.37
7.2.20.0090.00616.10
7.2.10.0090.00016.39
7.2.00.0050.01017.97
7.1.250.0120.00815.37
7.1.100.0030.00617.54
7.1.70.0030.00816.62
7.1.60.0110.01519.46
7.1.50.0230.01334.40
7.1.00.0000.08022.51
7.0.200.0790.00314.37
7.0.140.0000.05322.07
7.0.60.0000.04320.00
7.0.50.0070.07317.88
7.0.40.0130.07720.09
7.0.30.0270.04320.19
7.0.20.0330.07720.30
7.0.10.0000.06720.10
7.0.00.0170.07320.33
5.6.280.0070.07020.83
5.6.210.0030.09020.73
5.6.200.0070.04018.18
5.6.190.0030.04320.68
5.6.180.0370.05320.77
5.6.170.0370.07720.51
5.6.160.0070.05720.44
5.6.150.0100.07718.21
5.6.140.0100.08018.28
5.6.130.0030.08318.18
5.6.120.0070.06720.99
5.6.110.0030.08721.09
5.6.100.0070.08321.12
5.6.90.0170.07320.97
5.6.80.0100.06020.36
5.5.350.0200.05320.38
5.5.340.0200.06718.09
5.5.330.0070.07720.44
5.5.320.0070.08020.42
5.5.310.0370.04720.36
5.5.300.0070.03317.98
5.5.290.0000.04317.99
5.5.280.0030.06020.81
5.5.270.0100.08320.93
5.5.260.0230.05320.68
5.5.250.0030.08320.67
5.5.240.0030.06720.32
5.4.450.0630.04719.31
5.4.440.1030.06719.30
5.4.430.0100.05319.42
5.4.420.0130.05319.55
5.4.410.0100.05319.02
5.4.400.0000.06718.51
5.4.390.0130.06318.79
5.4.380.0430.05718.61
5.4.370.0200.07018.77
5.4.360.0630.04718.59
5.4.350.0170.06318.79
5.4.340.0470.04718.77
5.4.320.0200.05718.70
5.4.310.0400.06018.48
5.4.300.0230.05018.71
5.4.290.0430.06018.42
5.4.280.0200.06318.64
5.4.270.0400.05018.70
5.4.260.0300.04718.53
5.4.250.0270.06318.78
5.4.240.0130.06318.75
5.4.230.0200.06718.76
5.4.220.0430.06718.75
5.4.210.0030.08018.81
5.4.200.0270.05016.53
5.4.190.0170.05018.72
5.4.180.0530.03318.69
5.4.170.0230.06718.80
5.4.160.0330.05018.74
5.4.150.0100.07318.45
5.4.140.0170.07316.34
5.4.130.0270.04016.25
5.4.120.0430.05016.26
5.4.110.0200.04716.50
5.4.100.0030.06716.27
5.4.90.0370.05016.21
5.4.80.0070.06016.26
5.4.70.0500.05316.43
5.4.60.0200.04316.27
5.4.50.0200.04716.21
5.4.40.0300.05016.27
5.4.30.0270.05016.16
5.4.20.0170.05016.18
5.4.10.0130.05316.19
5.4.00.0370.04015.75
5.3.290.0270.05714.67
5.3.280.0070.06014.63
5.3.270.0230.06014.61
5.3.260.0170.06314.71
5.3.250.0470.07014.64
5.3.240.0170.06314.66
5.3.230.0370.05014.65
5.3.220.0130.05714.66
5.3.210.0500.06014.63
5.3.200.0330.06714.76
5.3.190.0130.05314.67
5.3.180.0100.05314.59
5.3.170.0270.05714.59
5.3.160.0370.05314.73
5.3.150.0400.05314.77
5.3.140.0330.06014.59
5.3.130.0300.06714.57
5.3.120.0330.04714.58
5.3.110.0130.05714.68
5.3.100.0200.05014.09
5.3.90.0830.06014.19
5.3.80.0800.05314.09
5.3.70.0200.04714.05
5.3.60.0230.05314.11
5.3.50.0200.05014.00
5.3.40.0430.05314.01
5.3.30.0270.05313.94
5.3.20.0500.05713.91
5.3.10.0170.05013.78
5.3.00.0130.05013.84
5.2.170.0070.04711.18
5.2.160.0270.05011.35
5.2.150.0200.04311.18
5.2.140.0230.03311.18
5.2.130.0030.05011.21
5.2.120.0400.02711.18
5.2.110.0100.04311.15
5.2.100.0200.03011.13
5.2.90.0270.04711.16
5.2.80.0030.05011.15
5.2.70.0100.05711.13
5.2.60.0270.04711.16
5.2.50.0200.04011.22
5.2.40.0170.03711.04
5.2.30.0170.05311.00
5.2.20.0430.04311.03
5.2.10.0100.04310.90
5.2.00.0170.04310.71
5.1.60.0130.03710.18
5.1.50.0030.04310.20
5.1.40.0300.04010.00
5.1.30.0100.04010.45
5.1.20.0100.03710.46
5.1.10.0170.03010.25
5.1.00.0270.03310.26
5.0.50.0070.0278.75
5.0.40.0070.0308.62
5.0.30.0070.0438.23
5.0.20.0000.0338.25
5.0.10.0070.0308.18
5.0.00.0100.0408.30
4.4.90.0100.0276.00
4.4.80.0130.0275.88
4.4.70.0100.0175.90
4.4.60.0200.0235.91
4.4.50.0100.0205.94
4.4.40.0130.0305.95
4.4.30.0000.0276.01
4.4.20.0070.0205.97
4.4.10.0100.0175.96
4.4.00.0070.0376.04
4.3.110.0070.0235.80
4.3.100.0130.0175.79
4.3.90.0070.0205.86
4.3.80.0030.0375.83
4.3.70.0200.0235.81
4.3.60.0070.0205.85
4.3.50.0030.0235.89
4.3.40.0100.0275.77
4.3.30.0030.0234.56
4.3.20.0000.0334.53
4.3.10.0000.0274.48
4.3.00.0100.0206.97

preferences:
45.87 ms | 401 KiB | 5 Q