3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ''; initArray($array); initArray($array['a']); $array['a']['b'] = 1; function initArray(&$node) { if ($node === '') { $node = array(); } } var_dump($array);

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.4.10.0030.00619.25
8.3.140.0090.00917.31
8.3.130.0030.00518.50
8.3.120.0060.00320.82
8.3.110.0060.00320.94
8.3.100.0060.00324.06
8.3.90.0060.00326.77
8.3.80.0040.00417.97
8.3.70.0080.01118.56
8.3.60.0070.01116.76
8.3.50.0150.00716.47
8.3.40.0300.00819.63
8.3.30.0110.01418.87
8.3.20.0150.00521.70
8.3.10.0100.00821.79
8.3.00.0130.01318.76
8.2.260.0060.00318.22
8.2.250.0130.00418.27
8.2.240.0130.00717.17
8.2.230.0000.00922.58
8.2.220.0030.00837.54
8.2.210.0060.00326.77
8.2.200.0050.00518.17
8.2.190.0070.00718.17
8.2.180.0090.00916.50
8.2.170.0270.00818.93
8.2.160.0250.00819.79
8.2.150.0210.00718.97
8.2.140.0120.00820.33
8.2.130.0080.01120.46
8.2.120.0120.00819.26
8.2.110.0160.00719.33
8.2.100.0160.00619.20
8.2.90.0230.00818.85
8.2.80.0130.01119.21
8.2.70.0200.00518.77
8.2.60.0270.00618.68
8.2.50.0170.00619.07
8.2.40.0180.01118.81
8.2.30.0240.00518.63
8.2.20.0230.00518.81
8.2.10.0170.01018.70
8.2.00.0210.00618.44
8.1.310.0120.00618.20
8.1.300.0130.00317.66
8.1.290.0060.00330.84
8.1.280.0140.00725.92
8.1.270.0120.00722.12
8.1.260.0150.00721.91
8.1.250.0110.00722.16
8.1.240.0210.00818.47
8.1.230.0170.01318.44
8.1.220.0180.00818.71
8.1.210.0200.01218.35
8.1.200.0180.00918.67
8.1.190.0210.00718.49
8.1.180.0270.00718.31
8.1.170.0250.00518.68
8.1.160.0240.00618.33
8.1.150.0180.00818.42
8.1.140.0190.00718.49
8.1.130.0150.01218.65
8.1.120.0210.00718.35
8.1.110.0160.01218.37
8.1.100.0130.00819.61
8.1.90.0180.00918.47
8.1.80.0210.00519.70
8.1.70.0230.00118.64
8.1.60.0210.01218.63
8.1.50.0280.00718.50
8.1.40.0180.00818.64
8.1.30.0190.00918.71
8.1.20.0210.01119.83
8.1.10.0220.01018.55
8.1.00.0220.00518.37
8.0.300.0220.00117.80
8.0.290.0230.00617.62
8.0.280.0260.00617.51
8.0.270.0170.00717.81
8.0.260.0170.01317.70
8.0.250.0210.00617.75
8.0.240.0230.00817.74
8.0.230.0200.00617.79
8.0.220.0240.00617.70
8.0.210.0220.00717.65
8.0.200.0210.00817.82
8.0.190.0250.00817.75
8.0.180.0190.00517.78
8.0.170.0200.00917.81
8.0.160.0210.00517.88
8.0.150.0240.00517.78
8.0.140.0280.00317.77
8.0.130.0250.00517.75
8.0.120.0240.00717.75
8.0.110.0250.00617.72
8.0.100.0180.00817.72
8.0.90.0270.00217.72
8.0.80.0260.00517.62
8.0.70.0070.01017.75
8.0.60.0280.00117.78
8.0.50.0280.00317.64
8.0.30.0130.00417.72
8.0.20.0200.00717.86
8.0.10.0240.00517.76
8.0.00.0230.00419.56
7.4.330.0180.01317.31
7.4.320.0260.00517.29
7.4.300.0290.00517.37
7.4.290.0300.00617.30
7.4.280.0300.00517.28
7.4.270.0320.00517.51
7.4.260.0280.00717.20
7.4.250.0260.00717.37
7.4.240.0270.00817.26
7.4.230.0280.00717.34
7.4.220.0280.00817.29
7.4.210.0230.01017.23
7.4.200.0280.00517.12
7.4.190.0260.00717.40
7.4.180.0260.00517.68
7.4.160.0280.00617.31
7.4.150.0290.00517.29
7.4.140.0290.00717.28
7.4.130.0270.00517.19
7.4.120.0220.01017.41
7.4.110.0260.00917.21
7.4.100.0260.00717.29
7.4.90.0270.00717.06
7.4.80.0270.00617.17
7.4.70.0310.00217.45
7.4.60.0300.00317.30
7.4.50.0230.00817.15
7.4.40.0150.01317.36
7.4.30.0250.00717.44
7.4.20.0270.00517.17
7.4.10.0260.00817.31
7.4.00.0260.00817.09
7.3.330.0260.00817.05
7.3.320.0280.00716.98
7.3.310.0250.00817.08
7.3.300.0230.00917.69
7.3.290.0230.01317.04
7.3.280.0220.01017.15
7.3.270.0210.00917.13
7.3.260.0260.00516.99
7.3.250.0220.00917.15
7.3.240.0250.00617.20
7.3.230.0240.00917.01
7.3.220.0300.00216.95
7.3.210.0230.00916.92
7.3.200.0240.00716.96
7.3.190.0300.00216.97
7.3.180.0210.01116.97
7.3.170.0250.00717.54
7.3.160.0310.00517.00
7.3.150.0290.00316.93
7.3.140.0300.00817.01
7.3.130.0330.00516.73
7.3.120.0270.00416.87
7.3.110.0210.01117.55
7.3.100.0270.00516.97
7.3.90.0270.00517.28
7.3.80.0170.01417.07
7.3.70.0220.00318.16
7.3.60.0270.00417.26
7.3.50.0260.00717.26
7.3.40.0240.00817.26
7.3.30.0240.00716.98
7.3.20.0260.01017.29
7.3.10.0260.00717.12
7.3.00.0470.00617.09
7.2.340.0310.00217.21
7.2.330.0230.00817.17
7.2.320.0280.00517.02
7.2.310.0250.00717.08
7.2.300.0270.00517.02
7.2.290.0230.01017.22
7.2.280.0310.00417.06
7.2.270.0260.01017.09
7.2.260.0270.00616.86
7.2.250.0290.00417.18
7.2.240.0280.00617.26
7.2.230.0330.00017.16
7.2.220.0260.00517.18
7.2.210.0230.00917.25
7.2.200.0260.01017.37
7.2.190.0300.00417.22
7.2.180.0240.01017.26
7.2.170.0280.00517.36
7.2.160.0210.01117.31
7.2.150.0270.00617.48
7.2.140.0250.01117.39
7.2.130.0270.00617.33
7.2.120.0250.01317.39
7.2.110.0260.01117.54
7.2.100.0260.00517.07
7.2.90.0260.01217.31
7.2.80.0260.00717.29
7.2.70.0240.00817.40
7.2.60.0220.01317.35
7.2.50.0240.00917.29
7.2.40.0280.00817.35
7.2.30.0330.00317.24
7.2.20.0230.01117.41
7.2.10.0290.00817.40
7.2.00.0130.00917.36
7.1.330.0270.00616.23
7.1.320.0240.00716.25
7.1.310.0200.01016.45
7.1.300.0220.00516.44
7.1.290.0240.00416.22
7.1.280.0440.00416.23
7.1.270.0410.00817.42
7.1.260.0230.00616.20
7.1.250.0220.00716.27
7.1.240.0190.01116.23
7.1.230.0250.00416.49
7.1.220.0240.00616.36
7.1.210.0220.00516.42
7.1.200.0180.01116.25
7.1.190.0270.00516.22
7.1.180.0280.00616.32
7.1.170.0260.00716.18
7.1.160.0230.01017.38
7.1.150.0260.00616.10
7.1.140.0230.00716.37
7.1.130.0250.00316.45
7.1.120.0260.00316.22
7.1.110.0190.00716.34
7.1.100.0200.00816.27
7.1.90.0130.01516.29
7.1.80.0230.00716.35
7.1.70.0200.00916.20
7.1.60.0310.00716.43
7.1.50.1100.00816.91
7.1.40.0230.00716.25
7.1.30.0280.00516.21
7.1.20.0200.00916.27
7.1.10.0230.00716.40
7.1.00.0160.00216.49
7.0.330.0240.01216.20
7.0.320.0250.00216.19
7.0.310.0230.00616.08
7.0.300.0270.00916.07
7.0.290.0200.01116.07
7.0.280.0310.00516.07
7.0.270.0280.00516.13
7.0.260.0220.00816.11
7.0.250.0240.00416.30
7.0.240.0230.00516.39
7.0.230.0280.00316.18
7.0.220.0360.00616.22
7.0.210.0200.01016.10
7.0.200.0260.00516.24
7.0.190.0180.01016.13
7.0.180.0240.00616.10
7.0.170.0450.00216.12
7.0.160.0260.00316.14
7.0.150.0250.00416.07
7.0.140.0240.00616.20
7.0.130.0300.00416.09
7.0.120.0280.00516.07
7.0.110.0230.00617.20
7.0.100.0150.01016.07
7.0.90.0220.00616.16
7.0.80.0140.00816.15
7.0.70.0210.00516.07
7.0.60.0160.00916.19
7.0.50.0160.00616.07
7.0.40.0210.00516.15
7.0.30.0120.00816.26
7.0.20.0220.00916.07
7.0.10.0280.00516.07
7.0.00.0180.01016.07
5.6.400.0190.00916.93
5.6.390.0260.00416.76
5.6.380.0220.00816.59
5.6.370.0230.00816.58
5.6.360.0260.00516.78
5.6.350.0230.00616.79
5.6.340.0230.00616.74
5.6.330.0180.01016.64
5.6.320.0210.00516.71
5.6.310.0200.00616.67
5.6.300.0210.00516.69
5.6.290.0190.00616.75
5.6.280.0170.01116.72
5.6.270.0230.00416.65
5.6.260.0250.00216.76
5.6.250.0180.00916.84
5.6.240.0240.00516.97
5.6.230.0190.00817.10
5.6.220.0200.00716.88
5.6.210.0190.00716.93
5.6.200.0240.00416.91
5.6.190.0190.00716.88
5.6.180.0180.01116.91
5.6.170.0220.00816.94
5.6.160.0260.00416.82
5.6.150.0250.00716.84
5.6.140.0260.00316.74
5.6.130.0190.01016.82
5.6.120.0250.00416.92
5.6.110.0230.00516.71
5.6.100.0230.00416.79
5.6.90.0200.00616.80
5.6.80.0130.01216.79
5.6.70.0230.00416.94
5.6.60.0200.00616.88
5.6.50.0230.00116.76
5.6.40.0190.00616.81
5.6.30.0160.00916.97
5.6.20.0170.00916.75
5.6.10.0220.00516.56
5.6.00.0160.00916.91
5.5.380.0240.00616.88
5.5.370.0230.00916.76
5.5.360.0270.00316.90
5.5.350.0260.00516.69
5.5.340.0230.00316.73
5.5.330.0260.00516.85
5.5.320.0170.01016.84
5.5.310.0160.01116.68
5.5.300.0250.00416.86
5.5.290.0230.01016.82
5.5.280.0220.00616.85
5.5.270.0260.00516.59
5.5.260.0270.00816.64
5.5.250.0180.01316.57
5.5.240.0230.00716.82
5.5.230.0250.00216.79
5.5.220.0240.00316.64
5.5.210.0200.00816.67
5.5.200.0170.01216.80
5.5.190.0220.00816.54
5.5.180.0170.01316.39
5.5.170.0140.01616.57
5.5.160.0240.00316.51
5.5.150.0230.00516.55
5.5.140.0180.00816.46
5.5.130.0240.00316.52
5.5.120.0170.01116.50
5.5.110.0150.01316.52
5.5.100.0210.00616.56
5.5.90.0180.00916.86
5.5.80.0190.01116.88
5.5.70.0250.00316.86
5.5.60.0220.00516.54
5.5.50.0230.00516.68
5.5.40.0260.00216.83
5.5.30.0220.00616.67
5.5.20.0190.01016.66
5.5.10.0190.00916.51
5.5.00.0210.00716.49
5.4.450.0180.00316.07
5.4.440.0230.00216.07
5.4.430.0170.00416.07
5.4.420.0200.00416.07
5.4.410.0200.00316.07
5.4.400.0190.00216.07
5.4.390.0170.00516.07
5.4.380.0170.00716.07
5.4.370.0190.00316.07
5.4.360.0140.00916.07
5.4.350.0190.00516.07
5.4.340.0180.00516.07
5.4.330.0200.00316.07
5.4.320.0150.00816.07
5.4.310.0200.00316.07
5.4.300.0210.00316.07
5.4.290.0160.00516.07
5.4.280.0170.00416.07
5.4.270.0160.00516.07
5.4.260.0170.00516.07
5.4.250.0200.00216.07
5.4.240.0150.00516.07
5.4.230.0210.00216.07
5.4.220.0140.00716.07
5.4.210.0190.00216.07
5.4.200.0210.00216.07
5.4.190.0200.00316.07
5.4.180.0180.00416.07
5.4.170.0210.00216.07
5.4.160.0190.00216.07
5.4.150.0180.00516.07
5.4.140.0170.00516.07
5.4.130.0170.00316.07
5.4.120.0210.00216.07
5.4.110.0200.00216.07
5.4.100.0180.00516.07
5.4.90.0210.00216.07
5.4.80.0140.00616.07
5.4.70.0160.00516.07
5.4.60.0090.00316.07
5.4.50.0150.00516.07
5.4.40.0070.00516.07
5.4.30.0190.00216.07
5.4.20.0100.00216.07
5.4.10.0080.00716.07
5.4.00.0120.00116.07
5.3.290.0130.00616.07
5.3.280.0040.00716.07
5.3.270.0130.00716.07
5.3.260.0050.00616.07
5.3.250.0070.00416.07
5.3.240.0060.00516.07
5.3.230.0070.00316.07
5.3.220.0090.00416.07
5.3.210.0140.00516.07
5.3.200.0080.00316.07
5.3.190.0140.00516.07
5.3.180.0070.00316.07
5.3.170.0070.00416.07
5.3.160.0130.00516.07
5.3.150.0030.00716.07
5.3.140.0040.00816.07
5.3.130.0070.00316.07
5.3.120.0050.00616.07
5.3.110.0100.00916.07
5.3.100.0080.00616.07
5.3.90.0050.00616.07
5.3.80.0060.00616.07
5.3.70.0070.00616.07
5.3.60.0030.00716.07
5.3.50.0050.00516.07
5.3.40.0070.00516.07
5.3.30.0080.00316.07
5.3.20.0070.00516.07
5.3.10.0080.00316.07
5.3.00.0080.00416.07
5.2.170.0040.00716.07
5.2.160.0100.00516.07
5.2.150.0030.00716.07
5.2.140.0070.00616.07
5.2.130.0080.00216.07
5.2.120.0070.00616.07
5.2.110.0070.00316.07
5.2.100.0050.00516.07
5.2.90.0110.00016.07
5.2.80.0120.00316.07
5.2.70.0060.00316.07
5.2.60.0140.00316.07
5.2.50.0090.00216.07
5.2.40.0110.00316.07
5.2.30.0120.00516.07
5.2.20.0120.00516.07
5.2.10.0100.00716.07
5.2.00.0150.00216.07
5.1.60.0140.00216.07
5.1.50.0130.00216.07
5.1.40.0110.00516.07
5.1.30.0150.00316.07
5.1.20.0080.00816.07
5.1.10.0120.00216.07
5.1.00.0110.00316.07
5.0.50.0110.00116.07
5.0.40.0080.00416.07
5.0.30.0130.00016.07
5.0.20.0110.00116.07
5.0.10.0070.00516.07
5.0.00.0100.00316.07
4.4.90.0050.00416.07
4.4.80.0060.00116.07
4.4.70.0080.00016.07
4.4.60.0080.00016.07
4.4.50.0070.00016.07
4.4.40.0050.00216.07
4.4.30.0070.00016.07
4.4.20.0080.00016.07
4.4.10.0050.00216.07
4.4.00.0070.00016.07
4.3.110.0020.00516.07
4.3.100.0070.00016.07
4.3.90.0020.00616.07
4.3.80.0040.00316.07
4.3.70.0030.00316.07
4.3.60.0060.00216.07
4.3.50.0070.00016.07
4.3.40.0050.00116.07
4.3.30.0060.00016.07
4.3.20.0040.00116.07
4.3.10.0050.00016.07
4.3.00.0050.00216.07

preferences:
44.21 ms | 403 KiB | 5 Q