3v4l.org

run code in 300+ PHP versions simultaneously
<?php Class X { public $names = array('bob', 'fred'); } Class Y extends X { public $names = array('alice');//array_merge(parent::names, array('alice')); function __construct() { var_dump($this->parent->$names); } } $x = new X(); var_dump($x->names); $y = new Y(); var_dump($y->names);

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.40.0070.00718.84
8.3.30.0110.00418.98
8.3.20.0000.00820.22
8.3.10.0040.00423.61
8.3.00.0000.01117.91
8.2.170.0140.00722.96
8.2.160.0100.00720.34
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0060.00326.16
8.2.120.0000.00820.70
8.2.110.0070.01022.08
8.2.100.0100.00319.57
8.2.90.0040.00419.08
8.2.80.0060.00317.97
8.2.70.0030.00617.50
8.2.60.0080.00017.93
8.2.50.0000.00818.07
8.2.40.0000.00918.22
8.2.30.0000.00718.13
8.2.20.0000.00817.86
8.2.10.0000.00817.95
8.2.00.0080.00017.74
8.1.270.0030.00523.97
8.1.260.0090.00026.35
8.1.250.0040.00428.09
8.1.240.0070.01023.76
8.1.230.0060.00619.22
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.00817.35
8.1.190.0050.00317.23
8.1.180.0030.00618.10
8.1.170.0030.00618.59
8.1.160.0070.00021.97
8.1.150.0070.00018.92
8.1.140.0000.00717.46
8.1.130.0080.00017.84
8.1.120.0000.00717.36
8.1.110.0000.00717.48
8.1.100.0040.00417.48
8.1.90.0000.00717.47
8.1.80.0040.00417.32
8.1.70.0000.00717.37
8.1.60.0030.00617.55
8.1.50.0050.00317.52
8.1.40.0000.00817.44
8.1.30.0030.00517.67
8.1.20.0050.00517.62
8.1.10.0040.00417.40
8.1.00.0000.00717.42
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0030.00318.44
8.0.270.0070.00017.19
8.0.260.0000.00717.25
8.0.250.0030.00316.99
8.0.240.0000.00817.04
8.0.230.0070.00016.91
8.0.220.0030.00316.89
8.0.210.0050.00316.86
8.0.200.0030.00316.99
8.0.190.0000.00716.93
8.0.180.0000.00716.97
8.0.170.0080.00016.99
8.0.160.0000.00716.89
8.0.150.0070.00016.92
8.0.140.0000.00816.84
8.0.130.0050.00013.38
8.0.120.0040.00416.95
8.0.110.0040.00416.85
8.0.100.0030.00516.84
8.0.90.0040.00416.91
8.0.80.0030.01316.93
8.0.70.0000.00816.87
8.0.60.0040.00417.00
8.0.50.0040.00416.86
8.0.30.0070.01217.03
8.0.20.0070.01117.40
8.0.10.0000.00716.96
8.0.00.0110.00616.60
7.4.330.0030.00315.00
7.4.320.0000.00716.54
7.4.300.0060.00016.55
7.4.290.0040.00416.52
7.4.280.0000.00716.51
7.4.270.0030.00316.60
7.4.260.0000.00816.61
7.4.250.0040.00416.59
7.4.240.0050.00216.54
7.4.230.0030.00316.44
7.4.220.0150.00316.56
7.4.210.0070.01016.55
7.4.200.0040.00416.63
7.4.160.0140.01116.37
7.4.150.0030.01317.40
7.4.140.0050.01217.86
7.4.130.0090.01016.52
7.4.120.0090.00916.43
7.4.110.0080.00816.36
7.4.100.0090.00916.49
7.4.90.0100.00716.39
7.4.80.0090.01219.39
7.4.70.0170.00616.59
7.4.60.0110.00916.36
7.4.50.0030.00316.64
7.4.40.0030.01416.53
7.4.30.0070.01416.27
7.4.00.0070.00714.98
7.3.330.0040.00413.23
7.3.320.0060.00013.21
7.3.310.0040.00416.29
7.3.300.0070.00016.25
7.3.290.0030.01016.39
7.3.280.0070.01416.36
7.3.270.0060.01117.40
7.3.260.0120.00916.32
7.3.250.0080.01016.37
7.3.240.0080.00816.38
7.3.230.0100.00616.52
7.3.210.0040.01316.31
7.3.200.0030.01319.39
7.3.190.0160.00916.63
7.3.180.0140.00416.59
7.3.170.0100.00616.44
7.3.160.0130.01016.25
7.3.120.0000.01314.80
7.2.330.0100.00716.68
7.2.320.0120.01216.50
7.2.310.0130.00916.29
7.2.300.0070.01016.41
7.2.290.0100.00716.29
7.2.00.0110.00719.22
7.1.200.0000.01315.84
7.1.100.0040.00417.60
7.1.70.0030.01017.27
7.1.60.0070.01719.70
7.1.50.0100.01017.01
7.1.00.0000.07722.45
7.0.200.0210.00314.72
7.0.140.0100.06722.00
7.0.60.0070.06020.00
7.0.50.0030.08717.87
7.0.40.0030.08720.19
7.0.30.0270.07720.12
7.0.20.0130.04720.15
7.0.10.0000.07020.10
7.0.00.0030.06720.30
5.6.210.0100.04720.72
5.6.200.0170.07018.25
5.6.190.0130.08320.61
5.6.180.3670.04320.61
5.6.170.0430.06320.52
5.6.160.0070.07320.57
5.6.150.0030.04018.18
5.6.140.0030.08318.25
5.6.130.0070.04718.17
5.6.120.0100.08021.11
5.6.110.0070.09320.98
5.6.100.0000.04720.97
5.6.90.0100.07321.13
5.6.80.0200.06720.36
5.6.70.4770.03720.29
5.5.350.0300.07720.41
5.5.340.0130.07717.98
5.5.330.0070.04020.29
5.5.320.0470.07320.51
5.5.310.0330.06720.24
5.5.300.0030.08018.05
5.5.290.0070.08018.07
5.5.280.0030.08720.81
5.5.270.0070.08020.87
5.5.260.0070.04020.79
5.5.250.0130.06720.55
5.5.240.0170.04020.16
5.4.450.1100.03719.31
5.4.440.0430.03319.41
5.4.430.1100.03319.41
5.4.420.1400.03319.30
5.4.410.0630.04319.42
5.4.400.1330.03319.00
5.4.390.1170.03719.00
5.4.380.0370.05318.80
5.4.370.0330.07718.53
5.4.360.0370.04718.51
5.4.350.0570.07018.83
5.4.340.0300.05318.77
5.4.320.0050.04112.51
5.4.310.0060.03712.50
5.4.300.0060.03612.50
5.4.290.0030.04212.50
5.4.280.0040.03812.39
5.4.270.0040.03812.40
5.4.260.0080.03512.40
5.4.250.0060.03812.39
5.4.240.0050.03812.40
5.4.230.0080.03612.39
5.4.220.0070.03512.39
5.4.210.0060.03512.39
5.4.200.0040.03912.39
5.4.190.0040.03812.39
5.4.180.0060.03512.39
5.4.170.0050.04412.39
5.4.160.0090.03312.39
5.4.150.0090.03412.39
5.4.140.0040.03912.07
5.4.130.0080.03512.06
5.4.120.0100.03112.02
5.4.110.0070.03412.01
5.4.100.0050.03712.02
5.4.90.0050.03812.02
5.4.80.0070.03612.02
5.4.70.0140.02712.01
5.4.60.0110.03112.01
5.4.50.0070.03712.01
5.4.40.0050.04112.00
5.4.30.0070.03711.99
5.4.20.0100.03712.00
5.4.10.0030.04112.00
5.4.00.0090.03911.49
5.3.290.0070.03812.80
5.3.280.0120.04712.71
5.3.270.0110.05012.72
5.3.260.0090.05112.72
5.3.250.0090.05012.72
5.3.240.0120.04712.72
5.3.230.0090.04112.71
5.3.220.0090.03912.68
5.3.210.0100.04112.68
5.3.200.0070.03812.68
5.3.190.0070.03812.68
5.3.180.0110.04412.67
5.3.170.0070.03612.67
5.3.160.0070.03512.67
5.3.150.0080.04012.67
5.3.140.0080.03712.66
5.3.130.0080.04512.66
5.3.120.0040.04012.65
5.3.110.0080.04712.65
5.3.100.0070.04412.13
5.3.90.0060.04112.10
5.3.80.0090.04112.09
5.3.70.0080.03412.10
5.3.60.0070.03612.08
5.3.50.0110.03712.02
5.3.40.0100.04712.02
5.3.30.0090.04611.98
5.3.20.0100.04811.77
5.3.10.0100.05611.73
5.3.00.0110.07011.71
5.2.170.0070.0509.22
5.2.160.0150.0699.22
5.2.150.0230.0799.22
5.2.140.0210.1219.21
5.2.130.0110.0679.18
5.2.120.0090.0529.18
5.2.110.0070.0469.18
5.2.100.0080.0449.18
5.2.90.0080.0449.18
5.2.80.0070.0409.18
5.2.70.0050.0429.17
5.2.60.0070.0409.13
5.2.50.0080.0419.10
5.2.40.0080.0389.07
5.2.30.0090.0399.05
5.2.20.0130.0619.04
5.2.10.0100.0378.95
5.2.00.0050.0498.80
5.1.60.0080.0408.09
5.1.50.0120.0498.09
5.1.40.0030.0348.07
5.1.30.0050.0428.42
5.1.20.0060.0418.44
5.1.10.0090.0338.16
5.1.00.0070.0358.16
5.0.50.0070.0266.64
5.0.40.0040.0316.50
5.0.30.0050.0516.32
5.0.20.0080.0226.28
5.0.10.0030.0296.26
5.0.00.0080.0426.25
4.4.90.0030.0184.78
4.4.80.0040.0184.75
4.4.70.0040.0164.76
4.4.60.0030.0214.75
4.4.50.0020.0194.77
4.4.40.0010.0334.71
4.4.30.0050.0174.76
4.4.20.0020.0184.84
4.4.10.0060.0154.85
4.4.00.0020.0284.76
4.3.110.0020.0184.67
4.3.100.0020.0164.67
4.3.90.0050.0174.63
4.3.80.0020.0264.58
4.3.70.0020.0164.63
4.3.60.0020.0184.63
4.3.50.0050.0174.63
4.3.40.0020.0254.54
4.3.30.0010.0203.30
4.3.20.0010.0203.28
4.3.10.0030.0183.23
4.3.00.0130.01315.00

preferences:
50.56 ms | 400 KiB | 5 Q