3v4l.org

run code in 300+ PHP versions simultaneously
<?php class GrandParent { public function __construct($foo) { var_dump($foo); } } class Parentx extends GrandParent {} 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.0110.00416.63
8.3.50.0100.00922.05
8.3.40.0150.00018.59
8.3.30.0030.01019.00
8.3.20.0070.00020.04
8.3.10.0080.00021.60
8.3.00.0080.00020.92
8.2.180.0110.01116.50
8.2.170.0090.01222.96
8.2.160.0140.00022.04
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00319.64
8.2.110.0030.00620.99
8.2.100.0080.00417.50
8.2.90.0040.00418.86
8.2.80.0000.00817.97
8.2.70.0090.00017.38
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0070.00318.04
8.2.30.0060.00318.03
8.2.20.0030.00517.61
8.2.10.0080.00017.80
8.2.00.0050.00217.60
8.1.280.0180.00025.92
8.1.270.0060.00320.52
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00323.81
8.1.230.0040.00718.72
8.1.220.0070.00017.74
8.1.210.0060.00318.77
8.1.200.0030.00717.10
8.1.190.0000.00817.23
8.1.180.0000.00718.10
8.1.170.0080.00020.36
8.1.160.0000.00821.98
8.1.150.0040.00418.69
8.1.140.0000.00717.32
8.1.130.0000.00817.69
8.1.120.0000.00717.35
8.1.110.0040.00417.31
8.1.100.0000.00717.20
8.1.90.0000.00717.22
8.1.80.0040.00417.32
8.1.70.0070.00017.23
8.1.60.0060.00317.35
8.1.50.0060.00317.41
8.1.40.0060.00317.39
8.1.30.0080.00017.51
8.1.20.0040.00417.36
8.1.10.0110.00017.31
8.1.00.0040.00417.20
8.0.300.0000.00718.77
8.0.290.0030.00516.63
8.0.280.0070.00018.30
8.0.270.0100.00017.02
8.0.260.0060.00017.08
8.0.250.0030.00316.88
8.0.240.0000.00816.73
8.0.230.0000.00816.77
8.0.220.0040.00216.69
8.0.210.0070.00016.76
8.0.200.0000.00616.81
8.0.190.0000.00716.89
8.0.180.0050.00516.67
8.0.170.0040.00416.77
8.0.160.0030.00316.82
8.0.150.0080.00016.63
8.0.140.0070.00016.63
8.0.130.0060.00013.14
8.0.120.0000.00816.70
8.0.110.0040.00416.77
8.0.100.0000.00716.87
8.0.90.0000.00716.71
8.0.80.0090.01216.68
8.0.70.0030.00416.60
8.0.60.0050.00316.75
8.0.50.0000.00816.61
8.0.30.0100.00916.93
8.0.20.0110.00817.40
8.0.10.0040.00416.81
8.0.00.0100.00816.51
7.4.330.0000.00515.03
7.4.320.0000.00716.38
7.4.300.0000.00616.38
7.4.290.0000.00816.27
7.4.280.0080.00416.38
7.4.270.0040.00416.50
7.4.260.0000.00616.48
7.4.250.0080.00016.41
7.4.240.0030.00416.37
7.4.230.0070.00016.56
7.4.220.0090.01316.46
7.4.210.0050.00816.41
7.4.200.0030.00316.27
7.4.160.0090.00616.34
7.4.150.0090.00917.40
7.4.140.0090.00917.86
7.4.130.0130.00716.42
7.4.120.0050.01216.36
7.4.110.0060.01316.42
7.4.100.0140.01116.45
7.4.90.0080.00816.43
7.4.80.0060.01219.39
7.4.70.0090.01216.36
7.4.60.0000.01516.27
7.4.50.0000.00416.15
7.4.40.0060.00916.30
7.4.30.0120.01016.14
7.4.00.0090.00614.63
7.3.330.0050.00013.12
7.3.320.0000.00513.04
7.3.310.0030.00316.06
7.3.300.0000.00716.18
7.3.290.0030.00316.05
7.3.280.0080.01316.15
7.3.270.0120.00617.40
7.3.260.0110.01116.36
7.3.250.0140.00916.14
7.3.240.0180.00016.39
7.3.230.0030.01516.39
7.3.210.0100.00616.40
7.3.200.0120.01119.39
7.3.190.0060.00916.19
7.3.180.0140.00316.19
7.3.170.0120.00916.30
7.3.160.0150.00616.12
7.3.10.0030.01015.98
7.3.00.0040.00416.33
7.2.330.0130.00316.51
7.2.320.0100.00616.42
7.2.310.0030.01416.33
7.2.300.0200.00316.39
7.2.290.0100.01316.45
7.2.130.0030.00916.09
7.2.120.0030.00916.44
7.2.110.0040.00816.70
7.2.100.0070.00716.34
7.2.90.0000.01316.29
7.2.80.0100.00316.49
7.2.70.0040.01116.41
7.2.60.0140.01416.34
7.2.50.0170.00516.53
7.2.40.0090.00916.33
7.2.30.0160.00316.21
7.2.20.0130.00716.41
7.2.10.0070.00716.48
7.2.00.0060.00617.74
7.1.250.0070.00415.16
7.1.100.0040.00917.71
7.1.70.0040.00416.63
7.1.60.0120.01219.46
7.1.50.0170.01734.63
7.1.00.0070.07322.43
7.0.200.0360.00014.59
7.0.140.0070.05722.10
7.0.60.0300.04719.98
7.0.50.0030.04017.90
7.0.40.0070.08020.30
7.0.30.0200.06720.19
7.0.20.0270.05020.24
7.0.10.0030.06320.06
7.0.00.0030.07020.09
5.6.280.0070.07021.14
5.6.210.0030.08020.63
5.6.200.0100.07318.19
5.6.190.0070.04320.28
5.6.180.0230.07720.47
5.6.170.0370.06720.44
5.6.160.0130.08020.44
5.6.150.0070.04318.12
5.6.140.0070.08318.14
5.6.130.0100.06018.15
5.6.120.0130.08021.14
5.6.110.0100.06020.99
5.6.100.0100.04721.05
5.6.90.0100.07020.94
5.6.80.0070.08020.42
5.5.350.0200.06720.44
5.5.340.0100.04718.03
5.5.330.0070.04720.42
5.5.320.0370.04720.30
5.5.310.0330.05320.35
5.5.300.0200.06017.94
5.5.290.0070.08717.95
5.5.280.0130.07020.80
5.5.270.0030.09020.88
5.5.260.0100.05320.88
5.5.250.0130.07020.55
5.5.240.0070.08320.27
5.4.450.0200.04019.55
5.4.440.0300.05019.43
5.4.430.0300.04719.31
5.4.420.0270.07719.54
5.4.410.0270.08019.18
5.4.400.0330.06319.18
5.4.390.0330.06019.14
5.4.380.0330.04019.12
5.4.370.0300.05719.19
5.4.360.0230.05318.97
5.4.350.0330.04018.95
5.4.340.0400.03719.26
5.4.320.0270.05719.03
5.4.310.0330.07019.18
5.4.300.0230.06019.22
5.4.290.0330.06318.99
5.4.280.0370.06019.21
5.4.270.0470.04719.06
5.4.260.0300.05319.12
5.4.250.0330.06719.12
5.4.240.0300.03319.11
5.4.230.0300.04718.98
5.4.220.0370.06719.21
5.4.210.0330.06719.11
5.4.200.0230.05319.03
5.4.190.0230.05718.98
5.4.180.0270.06019.22
5.4.170.0300.05719.14
5.4.160.0270.07019.11
5.4.150.0530.04019.20
5.4.140.0330.06716.50
5.4.130.0300.07716.55
5.4.120.0300.04716.54
5.4.110.0200.06316.57
5.4.100.0400.05716.55
5.4.90.0270.03716.54
5.4.80.0270.03316.39
5.4.70.0270.04016.51
5.4.60.0270.03316.21
5.4.50.0370.06016.50
5.4.40.0230.07716.43
5.4.30.0230.04016.45
5.4.20.0270.03316.50
5.4.10.0270.07316.34
5.4.00.0400.05715.89
5.3.290.0370.04714.70
5.3.280.0330.04014.61
5.3.270.0330.07314.60
5.3.260.0400.04014.49
5.3.250.0300.06714.60
5.3.240.0300.06314.62
5.3.230.0370.07314.65
5.3.220.0200.04714.63
5.3.210.0270.03714.57
5.3.200.0230.05014.59
5.3.190.0270.04014.62
5.3.180.0270.03714.59
5.3.170.0230.05314.59
5.3.160.0270.04314.54
5.3.150.0270.07714.48
5.3.140.0270.04314.57
5.3.130.0300.04714.59
5.3.120.0270.04714.59
5.3.110.0300.05714.59
5.3.100.0270.03714.08
5.3.90.0230.03714.02
5.3.80.0270.03314.07
5.3.70.0370.05014.06
5.3.60.0230.04713.93
5.3.50.0300.07314.04
5.3.40.0300.07314.01
5.3.30.0300.03313.80
5.3.20.0330.03713.58
5.3.10.0200.04313.63
5.3.00.0300.06713.53
5.2.170.0300.04011.23
5.2.160.0270.03311.14
5.2.150.0200.03311.12
5.2.140.0270.03711.07
5.2.130.0270.04011.14
5.2.120.0300.03711.27
5.2.110.0270.04310.99
5.2.100.0370.05011.18
5.2.90.0270.05311.08
5.2.80.0230.06311.13
5.2.70.0300.03011.02
5.2.60.0370.03311.05
5.2.50.0330.03011.00
5.2.40.0130.03311.07
5.2.30.0100.05011.02
5.2.20.0200.04310.99
5.2.10.0230.05711.01
5.2.00.0270.04010.87
5.1.60.0200.05310.03
5.1.50.0170.02710.14
5.1.40.0170.0309.96
5.1.30.0200.05310.39
5.1.20.0200.03310.37
5.1.10.0200.02710.13
5.1.00.0200.04710.09
5.0.50.0100.0378.78
5.0.40.0200.0338.78
5.0.30.0130.0608.78
5.0.20.0130.0378.78
5.0.10.0100.0208.78
5.0.00.0100.0338.78
4.4.90.0070.0278.78
4.4.80.0170.0208.78
4.4.70.0100.0378.78
4.4.60.0100.0408.78
4.4.50.0130.0238.78
4.4.40.0100.0308.78
4.4.30.0100.0378.78
4.4.20.0130.0178.78
4.4.10.0100.0278.78
4.4.00.0100.0438.78
4.3.110.0100.0338.78
4.3.100.0130.0338.78
4.3.90.0100.0308.78
4.3.80.0100.0278.78
4.3.70.0070.0338.78
4.3.60.0130.0238.78
4.3.50.0130.0308.78
4.3.40.0100.0378.78
4.3.30.0100.0178.78
4.3.20.0070.0238.78
4.3.10.0130.0138.78
4.3.00.0000.0238.78

preferences:
46.78 ms | 401 KiB | 5 Q