3v4l.org

run code in 300+ PHP versions simultaneously
<?php $add = array( 'cache' => DRUPAL_CACHE_PER_PAGE, 'weight' => -1, // Set initially above the unanswered questions block 'region' => 'lmenu', 'status' => 1, 'visibility' => BLOCK_VISIBILITY_NOTLISTED ); $arr = array( 'one'=>1, 'two'=>2 )+$add; var_dump($arr);

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.0100.01016.38
8.3.50.0080.01022.10
8.3.40.0090.00618.84
8.3.30.0100.00719.09
8.3.20.0070.00020.20
8.3.10.0070.00023.59
8.3.00.0080.00019.38
8.2.180.0120.00318.29
8.2.170.0070.01022.96
8.2.160.0070.00720.33
8.2.150.0030.00624.18
8.2.140.0070.00024.66
8.2.130.0150.00026.16
8.2.120.0000.00722.13
8.2.110.0030.00620.30
8.2.100.0000.01117.78
8.2.90.0030.00519.17
8.2.80.0000.00817.97
8.2.70.0060.00317.63
8.2.60.0040.00417.93
8.2.50.0050.00318.07
8.2.40.0050.00318.34
8.2.30.0000.00818.17
8.2.20.0030.00617.69
8.2.10.0000.00818.10
8.2.00.0110.00017.69
8.1.280.0120.00425.92
8.1.270.0000.00922.05
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0030.00723.86
8.1.230.0070.00722.11
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0040.00417.23
8.1.190.0000.00817.40
8.1.180.0070.00418.10
8.1.170.0000.00818.48
8.1.160.0070.00022.07
8.1.150.0000.00718.59
8.1.140.0070.00017.46
8.1.130.0030.00317.69
8.1.120.0040.00417.32
8.1.110.0070.00017.41
8.1.100.0000.00717.41
8.1.90.0020.00517.31
8.1.80.0000.00717.41
8.1.70.0040.00417.27
8.1.60.0030.00617.59
8.1.50.0030.00517.44
8.1.40.0070.00017.46
8.1.30.0080.00017.57
8.1.20.0000.00817.51
8.1.10.0000.00717.40
8.1.00.0050.00317.45
8.0.300.0040.00418.77
8.0.290.0000.00917.05
8.0.280.0000.00718.41
8.0.270.0000.00717.20
8.0.260.0060.00017.33
8.0.250.0030.00317.11
8.0.240.0000.00616.99
8.0.230.0030.00317.05
8.0.220.0000.00816.85
8.0.210.0070.00016.85
8.0.200.0060.00016.91
8.0.190.0040.00416.93
8.0.180.0060.00316.98
8.0.170.0070.00016.93
8.0.160.0000.00716.95
8.0.150.0050.00316.81
8.0.140.0000.00716.82
8.0.130.0060.00013.41
8.0.120.0020.00516.85
8.0.110.0000.00716.93
8.0.100.0070.00017.00
8.0.90.0000.00816.83
8.0.80.0040.01216.93
8.0.70.0000.00717.00
8.0.60.0000.00716.86
8.0.50.0000.00717.05
8.0.30.0110.01117.05
8.0.20.0070.01217.40
8.0.10.0050.00216.91
8.0.00.0110.00616.75
7.4.330.0020.00215.00
7.4.320.0050.00316.55
7.4.300.0030.00316.41
7.4.290.0070.00016.54
7.4.280.0070.00016.45
7.4.270.0070.00016.60
7.4.260.0000.00716.61
7.4.250.0000.00716.58
7.4.240.0060.00216.52
7.4.230.0030.00316.39
7.4.220.0130.00316.58
7.4.210.0120.00516.63
7.4.200.0030.00316.70
7.4.190.0080.00016.64
7.4.160.0120.01216.61
7.4.150.0140.00317.40
7.4.140.0180.00717.86
7.4.130.0130.00316.52
7.4.120.0090.00816.60
7.4.110.0100.00716.51
7.4.100.0140.01016.59
7.4.90.0080.01116.49
7.4.80.0100.01019.39
7.4.70.0110.00616.75
7.4.60.0030.01316.54
7.4.50.0080.00016.59
7.4.40.0060.00922.77
7.4.30.0070.01016.56
7.4.00.0070.00514.99
7.3.330.0000.00613.18
7.3.320.0020.00213.23
7.3.310.0070.00016.39
7.3.300.0030.00316.35
7.3.290.0070.00716.30
7.3.280.0060.01316.29
7.3.270.0060.01217.40
7.3.260.0040.01316.50
7.3.250.0100.00816.35
7.3.240.0120.01216.60
7.3.230.0130.00316.39
7.3.210.0130.00816.41
7.3.200.0110.01019.39
7.3.190.0090.01216.48
7.3.180.0140.00316.50
7.3.170.0070.01016.29
7.3.160.0040.01116.55
7.3.120.0080.00814.86
7.3.110.0030.01214.98
7.3.100.0000.01514.84
7.3.90.0140.00314.75
7.3.80.0100.00714.84
7.3.70.0070.00314.93
7.3.60.0030.01215.01
7.3.50.0030.01214.48
7.3.40.0000.01714.86
7.3.30.0120.00314.80
7.3.20.0110.00416.81
7.3.10.0000.00916.46
7.3.00.0080.00616.48
7.2.330.0030.01516.66
7.2.320.0160.01416.50
7.2.310.0000.01716.57
7.2.300.0110.01116.49
7.2.290.0100.00716.54
7.2.250.0000.01815.07
7.2.240.0030.01614.97
7.2.230.0040.00815.04
7.2.220.0080.00615.08
7.2.210.0160.00315.14
7.2.200.0070.00714.80
7.2.190.0060.00914.98
7.2.180.0110.00414.81
7.2.170.0030.00714.80
7.2.60.0100.00316.90
7.2.00.0040.01219.33
7.1.330.0070.00715.56
7.1.320.0130.00315.71
7.1.310.0060.01115.69
7.1.300.0030.01515.68
7.1.290.0000.01015.42
7.1.280.0030.01015.75
7.1.270.0000.01115.81
7.1.260.0000.01015.77
7.1.200.0090.00315.80
7.1.100.0000.01418.11
7.1.70.0150.00017.14
7.1.60.0150.00819.46
7.1.50.0070.01316.60
7.1.00.0030.07722.45
7.0.200.0030.00716.82
7.0.140.0000.07722.00
7.0.60.0030.08319.91
7.0.50.0070.05717.88
7.0.40.0070.09020.19
7.0.30.0500.06020.00
7.0.20.0230.08020.20
7.0.10.0000.07020.30
7.0.00.0000.05720.03
5.6.280.0070.07020.92
5.6.210.0100.07020.76
5.6.200.0030.09018.21
5.6.190.0130.07320.35
5.6.180.0200.08320.64
5.6.170.0170.03720.47
5.6.160.0070.04020.37
5.6.150.0030.05018.16
5.6.140.0030.04718.13
5.6.130.0100.07318.18
5.6.120.0030.09021.02
5.6.110.0070.06320.98
5.6.100.0030.08020.99
5.6.90.0130.05720.97
5.6.80.0030.07020.53
5.6.70.4530.04020.39
5.5.350.0130.04720.43
5.5.340.0000.07717.95
5.5.330.0070.04020.46
5.5.320.0170.08720.13
5.5.310.0200.05320.13
5.5.300.0130.07717.93
5.5.290.0030.05317.95
5.5.280.0170.03320.89
5.5.270.0030.08720.89
5.5.260.0070.08720.72
5.5.250.0230.07020.68
5.5.240.0200.08720.18
5.4.450.0070.06319.41
5.4.440.0200.05019.22
5.4.430.0430.06019.62
5.4.420.0070.06719.44
5.4.410.0100.07019.09
5.4.400.0330.04019.14
5.4.390.0200.05019.16
5.4.380.0370.05318.50
5.4.370.0300.06018.56
5.4.360.0230.06318.70
5.4.350.0230.06318.47
5.4.340.0330.05018.71
5.4.320.0040.04412.45
5.4.310.0060.03812.45
5.4.300.0050.03612.45
5.4.290.0020.04712.45
5.4.280.0180.06312.32
5.4.270.0060.04112.32
5.4.260.0050.04612.32
5.4.250.0040.04212.32
5.4.240.0150.04012.32
5.4.230.0080.04012.32
5.4.220.0090.04112.32
5.4.210.0100.03612.31
5.4.200.0070.03812.31
5.4.190.0080.03612.31
5.4.180.0090.03912.31
5.4.170.0080.03812.32
5.4.160.0080.04012.32
5.4.150.0080.04112.32
5.4.140.0060.04212.00
5.4.130.0080.03911.98
5.4.120.0160.07211.94
5.4.110.0740.04011.94
5.4.100.0100.07211.94
5.4.90.0060.05511.94
5.4.80.0080.04411.93
5.4.70.0130.05111.93
5.4.60.0080.03911.93
5.4.50.0070.03711.93
5.4.40.0080.03411.92
5.4.30.0060.03811.91
5.4.20.0090.04111.92
5.4.10.0100.04511.92
5.4.00.0110.04411.41
5.3.290.0050.04712.80
5.3.280.0100.05012.71
5.3.270.0090.05312.73
5.3.260.0080.04212.72
5.3.250.0110.05012.72
5.3.240.0080.05112.72
5.3.230.0160.04412.71
5.3.220.0060.04012.68
5.3.210.0090.04012.68
5.3.200.0130.05612.68
5.3.190.0050.04512.67
5.3.180.0100.03812.67
5.3.170.0090.04212.67
5.3.160.0060.05212.67
5.3.150.0110.04712.67
5.3.140.0130.05312.66
5.3.130.0070.04212.66
5.3.120.0120.05112.66
5.3.110.0100.07612.66
5.3.100.0190.07112.12
5.3.90.0130.06012.09
5.3.80.0130.06112.08
5.3.70.0100.05312.08
5.3.60.0090.05212.06
5.3.50.0100.05012.00
5.3.40.0070.05412.00
5.3.30.0110.05211.94
5.3.20.0080.05011.70
5.3.10.0100.05011.66
5.3.00.0070.05611.67
5.2.170.0090.0439.15
5.2.160.0110.0439.15
5.2.150.0070.0479.15
5.2.140.0090.0479.15
5.2.130.0070.0439.12
5.2.120.0150.0369.11
5.2.110.0120.0389.11
5.2.100.0090.0429.11
5.2.90.0140.0379.11
5.2.80.0090.0459.11
5.2.70.0100.0439.11
5.2.60.0080.0439.06
5.2.50.0080.0429.03
5.2.40.0060.0429.01
5.2.30.0090.0438.98
5.2.20.0100.0418.97
5.2.10.0070.0438.90
5.2.00.0130.0388.76
5.1.60.0070.0348.05
5.1.50.0080.0348.05
5.1.40.0060.0358.03
5.1.30.0060.0388.38
5.1.20.0070.0388.40
5.1.10.0060.0368.13
5.1.00.0110.0328.12
5.0.50.0100.0256.60
5.0.40.0080.0296.46
5.0.30.0050.0396.27
5.0.20.0040.0256.25
5.0.10.0060.0246.22
5.0.00.0080.0326.21
4.4.90.0030.0164.78
4.4.80.0070.0154.76
4.4.70.0040.0164.76
4.4.60.0050.0154.75
4.4.50.0050.0144.77
4.4.40.0030.0264.71
4.4.30.0040.0154.76
4.4.20.0020.0184.84
4.4.10.0030.0184.85
4.4.00.0040.0274.75
4.3.110.0040.0184.67
4.3.100.0020.0174.66
4.3.90.0020.0164.64
4.3.80.0040.0254.58
4.3.70.0060.0134.63
4.3.60.0050.0144.63
4.3.50.0050.0154.63
4.3.40.0050.0244.54
4.3.30.0010.0193.28
4.3.20.0030.0163.25
4.3.10.0030.0163.22
4.3.00.0000.01710.30

preferences:
42.91 ms | 401 KiB | 5 Q