3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A{ public static $def = array('head'=>array('a'=>'b'),'fields'=>array('a'=>'field_a','b'=>'field_b')); } class B extends A { public function __construct() { B::$def = array_merge(parrent::$def,array('fields'=>array('c'=>'field_c'))); } } var_dump(B::$def);

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.0080.00816.63
8.3.50.0110.00922.82
8.3.40.0090.00618.70
8.3.30.0180.00018.75
8.3.20.0070.00020.34
8.3.10.0050.00323.70
8.3.00.0080.00019.01
8.2.180.0120.00916.38
8.2.170.0150.00022.96
8.2.160.0210.00020.43
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0040.00421.07
8.2.110.0070.00322.13
8.2.100.0120.00017.78
8.2.90.0030.00619.23
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0040.00417.93
8.2.50.0100.00018.07
8.2.40.0050.00319.82
8.2.30.0000.00818.04
8.2.20.0040.00417.57
8.2.10.0070.00017.94
8.2.00.0060.00317.48
8.1.280.0110.00825.92
8.1.270.0000.00823.71
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00323.98
8.1.230.0110.00017.52
8.1.220.0000.00817.74
8.1.210.0050.00518.77
8.1.200.0090.00017.35
8.1.190.0040.00417.10
8.1.180.0080.00018.10
8.1.170.0030.00618.59
8.1.160.0000.00721.85
8.1.150.0090.00018.76
8.1.140.0040.00417.23
8.1.130.0000.00717.75
8.1.120.0070.00017.27
8.1.110.0040.00417.38
8.1.100.0040.00417.33
8.1.90.0000.00717.39
8.1.80.0040.00417.37
8.1.70.0030.00317.28
8.1.60.0100.00017.36
8.1.50.0040.00417.33
8.1.40.0020.00517.32
8.1.30.0030.00517.45
8.1.20.0050.00317.51
8.1.10.0000.00817.51
8.1.00.0080.00017.23
8.0.300.0000.00818.77
8.0.290.0040.00416.63
8.0.280.0040.00418.25
8.0.270.0040.00417.05
8.0.260.0060.00017.14
8.0.250.0000.00716.71
8.0.240.0070.00016.86
8.0.230.0030.00316.84
8.0.220.0030.00316.73
8.0.210.0040.00416.76
8.0.200.0040.00416.74
8.0.190.0040.00416.86
8.0.180.0050.00616.86
8.0.170.0020.00516.72
8.0.160.0000.00716.63
8.0.150.0070.00016.60
8.0.140.0000.00716.57
8.0.130.0030.00313.20
8.0.120.0040.00416.63
8.0.110.0070.00016.73
8.0.100.0000.00716.61
8.0.90.0030.00416.75
8.0.80.0030.01216.78
8.0.70.0040.00416.79
8.0.60.0040.00416.82
8.0.50.0000.00716.61
8.0.30.0120.00916.86
8.0.20.0080.01317.40
8.0.10.0080.00016.80
8.0.00.0130.00816.66
7.4.330.0000.00515.00
7.4.320.0030.00316.36
7.4.300.0000.00716.38
7.4.290.0000.00716.33
7.4.280.0070.00016.37
7.4.270.0030.00316.47
7.4.260.0040.00416.36
7.4.250.0040.00416.47
7.4.240.0040.00416.51
7.4.230.0000.00816.47
7.4.220.0140.00416.54
7.4.210.0090.00616.50
7.4.200.0040.00416.44
7.4.160.0130.00316.27
7.4.150.0110.00717.40
7.4.140.0060.01217.86
7.4.130.0090.00816.36
7.4.120.0090.00816.42
7.4.110.0110.01116.18
7.4.100.0040.01816.60
7.4.90.0120.00616.48
7.4.80.0120.00619.39
7.4.70.0040.01516.56
7.4.60.0120.00416.35
7.4.50.0080.00016.29
7.4.40.0090.00916.20
7.4.30.0130.00316.43
7.4.00.0060.00914.97
7.3.330.0000.00613.11
7.3.320.0000.00513.06
7.3.310.0000.00816.22
7.3.300.0030.00316.11
7.3.290.0000.02016.30
7.3.280.0120.00716.24
7.3.270.0070.01417.40
7.3.260.0100.01316.52
7.3.250.0030.01416.39
7.3.240.0150.00416.27
7.3.230.0100.01116.44
7.3.210.0070.01016.32
7.3.200.0140.00319.39
7.3.190.0140.00316.42
7.3.180.0110.00516.56
7.3.170.0130.00316.36
7.3.160.0070.01016.46
7.2.330.0060.01216.19
7.2.320.0110.00616.22
7.2.310.0080.00816.66
7.2.300.0110.00716.27
7.2.290.0060.01616.32
7.2.60.0030.01316.67
7.2.00.0030.00919.22
7.1.200.0060.00815.66
7.1.100.0070.00417.70
7.1.70.0000.00717.11
7.1.60.0110.01419.40
7.1.50.0100.01416.56
7.1.00.0030.07722.30
7.0.200.0000.00716.53
7.0.140.0000.07722.09
7.0.60.0100.05720.06
7.0.50.0070.08017.96
7.0.40.0070.05320.26
7.0.30.0300.04720.13
7.0.20.0200.08320.16
7.0.10.0170.08020.26
7.0.00.0000.05020.23
5.6.280.0130.06321.14
5.6.210.0000.04320.48
5.6.200.0130.04318.19
5.6.190.0170.07720.33
5.6.180.0270.07320.41
5.6.170.0300.07320.56
5.6.160.0100.08020.44
5.6.150.0030.06318.27
5.6.140.0030.08318.27
5.6.130.0070.07318.28
5.6.120.0100.05721.20
5.6.110.0100.08320.95
5.6.100.0170.08021.11
5.6.90.0130.08321.04
5.6.80.0100.08020.52
5.5.350.0170.05720.42
5.5.340.0030.04317.98
5.5.330.0170.07720.57
5.5.320.0030.04720.28
5.5.310.0230.03720.36
5.5.300.0030.05317.96
5.5.290.0030.08018.01
5.5.280.0130.06320.89
5.5.270.0070.08720.88
5.5.260.0130.07720.88
5.5.250.0130.08320.75
5.5.240.0000.05320.37
5.4.450.0500.05319.46
5.4.440.0330.05019.61
5.4.430.0730.05719.61
5.4.420.0930.05319.30
5.4.410.1000.05019.48
5.4.400.0230.06719.15
5.4.390.0200.05319.29
5.4.380.0400.05318.59
5.4.370.0330.05018.76
5.4.360.0400.04718.50
5.4.350.0270.05718.57
5.4.340.0300.05318.63
5.4.320.0040.04012.50
5.4.310.0080.06212.50
5.4.300.0100.03712.50
5.4.290.0030.04112.50
5.4.280.0070.03512.40
5.4.270.0060.03612.40
5.4.260.0060.04512.40
5.4.250.0050.03812.39
5.4.240.0070.03512.39
5.4.230.0070.04412.39
5.4.220.0080.03412.39
5.4.210.0090.03212.39
5.4.200.0080.04212.39
5.4.190.0060.04012.39
5.4.180.0050.03612.39
5.4.170.0110.03612.39
5.4.160.0070.03712.39
5.4.150.0040.03612.39
5.4.140.0040.04112.08
5.4.130.0060.04812.06
5.4.120.0060.03712.02
5.4.110.0110.04012.02
5.4.100.0030.03812.02
5.4.90.0040.03812.01
5.4.80.0080.04412.02
5.4.70.0120.03412.02
5.4.60.0060.03912.01
5.4.50.0050.03512.02
5.4.40.0070.03912.00
5.4.30.0060.04712.00
5.4.20.0060.03812.00
5.4.10.0080.04412.00
5.4.00.0090.03311.48
5.3.290.0030.04212.80
5.3.280.0120.04312.71
5.3.270.0060.04412.72
5.3.260.0070.04212.72
5.3.250.0120.03112.72
5.3.240.0050.04812.72
5.3.230.0080.04012.71
5.3.220.0060.03812.68
5.3.210.0070.03812.68
5.3.200.0050.03812.68
5.3.190.0040.03912.68
5.3.180.0100.03212.67
5.3.170.0060.03612.66
5.3.160.0060.03512.68
5.3.150.0040.03912.67
5.3.140.0070.03512.66
5.3.130.0090.03612.66
5.3.120.0070.05412.66
5.3.110.0080.03712.66
5.3.100.0050.03712.12
5.3.90.0070.03512.10
5.3.80.0040.03712.09
5.3.70.0090.03312.09
5.3.60.0050.03712.08
5.3.50.0040.03712.02
5.3.40.0070.03512.02
5.3.30.0060.03411.98
5.3.20.0050.03511.76
5.3.10.0080.03411.73
5.3.00.0040.03711.72
5.2.170.0040.0309.22
5.2.160.0030.0309.22
5.2.150.0040.0309.22
5.2.140.0030.0319.22
5.2.130.0070.0319.18
5.2.120.0050.0289.18
5.2.110.0060.0289.18
5.2.100.0070.0269.18
5.2.90.0060.0309.17
5.2.80.0080.0309.17
5.2.70.0050.0309.17
5.2.60.0030.0329.13
5.2.50.0020.0339.10
5.2.40.0050.0289.08
5.2.30.0010.0339.04
5.2.20.0060.0279.04
5.2.10.0050.0288.95
5.2.00.0050.0328.80
5.1.60.0070.0228.09
5.1.50.0020.0278.09
5.1.40.0060.0238.06
5.1.30.0040.0278.41
5.1.20.0030.0278.44
5.1.10.0050.0318.16
5.1.00.0060.0318.16
5.0.50.0040.0216.64
5.0.40.0020.0216.50
5.0.30.0060.0286.31
5.0.20.0020.0216.28
5.0.10.0000.0236.26
5.0.00.0060.0296.25
4.4.90.0020.0164.78
4.4.80.0040.0194.76
4.4.70.0030.0214.76
4.4.60.0030.0204.75
4.4.50.0040.0154.77
4.4.40.0030.0254.71
4.4.30.0040.0144.76
4.4.20.0010.0164.84
4.4.10.0050.0144.85
4.4.00.0050.0324.76
4.3.110.0040.0334.67
4.3.100.0060.0214.67
4.3.90.0030.0234.63
4.3.80.0020.0274.59
4.3.70.0010.0164.63
4.3.60.0020.0154.63
4.3.50.0060.0134.63
4.3.40.0020.0274.54
4.3.30.0020.0213.30
4.3.20.0030.0163.28
4.3.10.0000.0233.23
4.3.00.0170.0137.39

preferences:
54.08 ms | 401 KiB | 5 Q