3v4l.org

run code in 300+ PHP versions simultaneously
<?php class parentx { public function __construct($x=1, $y=2) { } } class child extends parentx { public function __construct($x, $y) { parent::__construct(); } }

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.0240.01016.50
8.3.50.0070.01120.98
8.3.40.0110.00318.61
8.3.30.0100.00718.92
8.3.20.0050.00320.22
8.3.10.0080.00023.66
8.3.00.0060.00318.83
8.2.180.0070.01116.32
8.2.170.0100.00722.96
8.2.160.0110.00420.35
8.2.150.0040.00424.18
8.2.140.0090.00924.66
8.2.130.0040.00426.16
8.2.120.0040.00420.99
8.2.110.0090.00022.11
8.2.100.0080.00417.66
8.2.90.0000.00718.92
8.2.80.0030.00617.97
8.2.70.0060.00317.38
8.2.60.0040.00417.68
8.2.50.0050.00318.07
8.2.40.0040.00419.88
8.2.30.0050.00319.72
8.2.20.0000.00817.45
8.2.10.0020.00517.80
8.2.00.0060.00317.97
8.1.280.0030.01025.92
8.1.270.0120.00620.38
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00023.80
8.1.230.0040.00819.01
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0040.00417.13
8.1.190.0040.00416.96
8.1.180.0080.00318.89
8.1.170.0040.00418.50
8.1.160.0030.00621.85
8.1.150.0000.00718.38
8.1.140.0040.00417.22
8.1.130.0040.00417.74
8.1.120.0000.00817.26
8.1.110.0000.00717.32
8.1.100.0030.00317.29
8.1.90.0000.00717.36
8.1.80.0000.00717.34
8.1.70.0050.00317.36
8.1.60.0040.00417.45
8.1.50.0040.00417.28
8.1.40.0030.00617.26
8.1.30.0090.00017.48
8.1.20.0050.00317.56
8.1.10.0000.00717.24
8.1.00.0000.00717.32
8.0.300.0050.00320.79
8.0.290.0000.00816.93
8.0.280.0070.00018.31
8.0.270.0050.00317.00
8.0.260.0060.00017.03
8.0.250.0040.00416.76
8.0.240.0040.00416.75
8.0.230.0000.00716.84
8.0.220.0030.00316.80
8.0.210.0000.00716.70
8.0.200.0000.00716.83
8.0.190.0030.00516.77
8.0.180.0040.00416.70
8.0.170.0040.00416.79
8.0.160.0040.00416.83
8.0.150.0080.00016.67
8.0.140.0030.00316.78
8.0.130.0080.00013.23
8.0.120.0030.00616.59
8.0.110.0040.00416.63
8.0.100.0070.00016.66
8.0.90.0000.00716.56
8.0.80.0070.01116.71
8.0.70.0040.00416.64
8.0.60.0040.00416.79
8.0.50.0040.00416.63
8.0.30.0100.00816.99
8.0.20.0100.00817.40
8.0.10.0000.00716.75
8.0.00.0070.01216.65
7.4.330.0050.00015.03
7.4.320.0000.00716.46
7.4.300.0000.00616.50
7.4.290.0040.00416.27
7.4.280.0090.00016.47
7.4.270.0050.00216.32
7.4.260.0000.00716.43
7.4.250.0000.00716.27
7.4.240.0050.00216.46
7.4.230.0070.00016.35
7.4.220.0090.00916.49
7.4.210.0030.01216.42
7.4.200.0030.00316.30
7.4.160.0090.00616.31
7.4.150.0120.00617.40
7.4.140.0140.00717.86
7.4.130.0070.01316.36
7.4.120.0120.00916.25
7.4.110.0120.00916.27
7.4.100.0040.01916.45
7.4.90.0030.01316.25
7.4.80.0070.01119.39
7.4.70.0070.01016.56
7.4.60.0080.00816.33
7.4.50.0050.00316.52
7.4.40.0040.01516.29
7.4.30.0090.00916.33
7.4.00.0000.01514.64
7.3.330.0000.00713.04
7.3.320.0060.00013.11
7.3.310.0030.00316.07
7.3.300.0030.00316.11
7.3.290.0060.00716.13
7.3.280.0080.00716.15
7.3.270.0060.01217.40
7.3.260.0090.00916.40
7.3.250.0080.01016.20
7.3.240.0040.01516.18
7.3.230.0170.00016.39
7.3.210.0140.00716.29
7.3.200.0090.00919.39
7.3.190.0170.00716.39
7.3.180.0090.01316.01
7.3.170.0090.01516.27
7.3.160.0100.00716.30
7.2.330.0110.00516.40
7.2.320.0100.00616.56
7.2.310.0090.00616.38
7.2.300.0060.01216.58
7.2.290.0130.00316.20
7.2.60.0030.01216.52
7.2.00.0040.01119.25
7.1.100.0030.00618.12
7.1.70.0040.00416.98
7.1.60.0100.01019.48
7.1.50.0070.01316.80
7.1.00.0070.07322.33
7.0.200.0080.00416.53
7.0.60.0130.07020.03
7.0.50.0070.08717.89
7.0.40.0030.05020.24
7.0.30.0370.03020.46
7.0.20.0270.08020.33
7.0.10.0100.07320.07
7.0.00.0130.07720.09
5.6.280.0030.07021.07
5.6.210.0100.08020.70
5.6.200.0130.07718.18
5.6.190.0100.08720.63
5.6.180.0070.08020.33
5.6.170.0300.03720.62
5.6.160.0030.08720.44
5.6.150.0030.04018.14
5.6.140.0130.07318.27
5.6.130.0030.04018.18
5.6.120.0030.06021.03
5.6.110.0030.04720.98
5.6.100.0030.09021.01
5.6.90.0100.05020.99
5.6.80.0100.07320.53
5.5.350.0200.03720.42
5.5.340.0070.04017.97
5.5.330.0070.04720.43
5.5.320.0170.07320.36
5.5.310.0330.07320.34
5.5.300.0000.08718.01
5.5.290.0070.04017.93
5.5.280.0100.08320.76
5.5.270.0030.04720.76
5.5.260.0170.05020.76
5.5.250.0070.08020.44
5.5.240.0070.07320.18
5.4.450.1030.04319.27
5.4.440.0270.05719.48
5.4.430.0100.05319.39
5.4.420.0070.06019.54
5.4.410.0130.05019.35
5.4.400.0100.05019.23
5.4.390.0170.06319.21
5.4.380.0070.05719.06
5.4.370.0100.05319.25
5.4.360.0200.04019.16
5.4.350.0130.05019.10
5.4.340.0200.04319.21
5.4.320.0130.05019.27
5.4.310.0170.05019.08
5.4.300.0030.08319.26
5.4.290.0130.05019.16
5.4.280.0100.05319.12
5.4.270.0070.06019.02
5.4.260.0170.04719.10
5.4.250.0100.05719.11
5.4.240.0130.05019.08
5.4.230.0170.04319.02
5.4.220.0170.04719.07
5.4.210.0070.07319.10
5.4.200.0200.04016.89
5.4.190.0170.04718.97
5.4.180.0200.04019.10
5.4.170.0130.05019.07
5.4.160.0100.05019.09
5.4.150.0170.04719.10
5.4.140.0070.07716.49
5.4.130.0200.06016.52
5.4.120.0100.05016.54
5.4.110.0000.05716.32
5.4.100.0100.05016.40
5.4.90.0000.08316.42
5.4.80.0070.06716.38
5.4.70.0100.05016.66
5.4.60.0100.05016.55
5.4.50.0170.04016.59
5.4.40.0100.05016.55
5.4.30.0100.04716.37
5.4.20.0230.03716.39
5.4.10.0100.04716.54
5.4.00.0200.03715.93
5.3.290.0100.06014.72
5.3.280.0100.05314.74
5.3.270.0170.05014.71
5.3.260.0030.06014.57
5.3.250.0070.05314.63
5.3.240.0100.05014.63
5.3.230.0100.05314.50
5.3.220.0070.05314.73
5.3.210.0100.05314.58
5.3.200.0130.04314.68
5.3.190.0100.05014.52
5.3.180.0170.04314.42
5.3.170.0100.05014.53
5.3.160.0070.05314.47
5.3.150.0100.05014.58
5.3.140.0130.04714.61
5.3.130.0130.05014.55
5.3.120.0070.05714.69
5.3.110.0100.05714.66
5.3.100.0100.05014.10
5.3.90.0130.04714.13
5.3.80.0170.04313.98
5.3.70.0070.05713.98
5.3.60.0100.05013.91
5.3.50.0170.04714.01
5.3.40.0200.06013.80
5.3.30.0170.04313.89
5.3.20.0070.05013.68
5.3.10.0070.05013.64
5.3.00.0130.04313.65
5.2.170.0070.04311.30
5.2.160.0130.03711.10
5.2.150.0130.03311.11
5.2.140.0170.04311.22
5.2.130.0130.04711.18
5.2.120.0100.03711.22
5.2.110.0070.04011.16
5.2.100.0130.03711.07
5.2.90.0070.04011.18
5.2.80.0030.04311.09
5.2.70.0100.03711.08
5.2.60.0170.03311.21
5.2.50.0100.04011.08
5.2.40.0070.04011.05
5.2.30.0130.03310.89
5.2.20.0030.04310.91
5.2.10.0100.03710.84
5.2.00.0100.03710.63
5.1.60.0100.0279.92
5.1.50.0100.03010.12
5.1.40.0100.0309.91
5.1.30.0100.04310.29
5.1.20.0200.02710.26
5.1.10.0130.0279.96
5.1.00.0100.04310.11
5.0.50.0030.0408.48
5.0.40.0070.0278.33
5.0.30.0030.0438.16
5.0.20.0000.0308.22
5.0.10.0030.0308.10
5.0.00.0000.0478.20
4.4.90.0100.0235.75
4.4.80.0070.0175.87
4.4.70.0000.0235.85
4.4.60.0000.0235.83
4.4.50.0000.0235.77
4.4.40.0070.0335.85
4.4.30.0000.0275.85
4.4.20.0030.0205.80
4.4.10.0070.0205.83
4.4.00.0000.0475.85
4.3.110.0030.0235.81
4.3.100.0000.0235.84
4.3.90.0000.0235.83
4.3.80.0000.0375.67
4.3.70.0030.0205.78
4.3.60.0070.0175.76
4.3.50.0070.0205.83
4.3.40.0070.0305.74
4.3.30.0030.0234.54
4.3.20.0000.0274.53
4.3.10.0030.0204.48
4.3.00.0100.00715.37

preferences:
62.42 ms | 401 KiB | 5 Q