3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = array('foobar'); $attributes = array('class' => 'control-label'); $attributes = array_merge($foo, $attributes); var_dump($attributes);

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.0170.00318.65
8.3.30.0030.01018.92
8.3.20.0040.00420.23
8.3.10.0040.00421.92
8.3.00.0080.00022.43
8.2.170.0080.00622.96
8.2.160.0100.00319.06
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0050.00319.54
8.2.110.0100.00021.04
8.2.100.0070.00717.72
8.2.90.0060.00319.09
8.2.80.0030.00617.97
8.2.70.0040.00417.50
8.2.60.0000.00917.80
8.2.50.0030.00518.10
8.2.40.0040.00420.58
8.2.30.0000.00917.98
8.2.20.0070.00017.69
8.2.10.0000.00717.52
8.2.00.0000.00717.56
8.1.270.0060.00318.62
8.1.260.0000.00826.35
8.1.250.0050.00228.09
8.1.240.0060.00322.60
8.1.230.0120.00017.42
8.1.220.0080.00017.75
8.1.210.0080.00018.77
8.1.200.0080.00317.35
8.1.190.0040.00417.53
8.1.180.0040.00418.10
8.1.170.0040.00418.59
8.1.160.0000.00822.19
8.1.150.0030.00618.48
8.1.140.0070.00017.48
8.1.130.0080.00017.72
8.1.120.0000.00717.26
8.1.110.0000.00717.39
8.1.100.0060.00317.38
8.1.90.0000.00817.28
8.1.80.0000.00717.28
8.1.70.0000.00817.27
8.1.60.0060.00317.42
8.1.50.0080.00017.43
8.1.40.0020.00517.45
8.1.30.0080.00017.51
8.1.20.0050.00317.48
8.1.10.0080.00017.53
8.1.00.0000.00717.42
8.0.300.0000.00718.77
8.0.290.0070.00016.63
8.0.280.0050.00318.24
8.0.270.0030.00317.14
8.0.260.0000.00716.73
8.0.250.0030.00316.93
8.0.240.0070.00016.78
8.0.230.0000.00716.92
8.0.220.0000.00716.71
8.0.210.0000.00716.82
8.0.200.0070.00016.85
8.0.190.0000.01016.75
8.0.180.0040.00416.87
8.0.170.0040.00416.86
8.0.160.0020.00516.71
8.0.150.0030.00316.65
8.0.140.0070.00016.70
8.0.130.0000.00513.23
8.0.120.0000.00816.68
8.0.110.0070.00016.84
8.0.100.0000.00716.61
8.0.90.0050.00216.82
8.0.80.0100.00616.70
8.0.70.0000.00716.71
8.0.60.0070.00016.87
8.0.50.0000.00816.88
8.0.30.0070.01516.98
8.0.20.0070.01117.40
8.0.10.0070.00016.95
8.0.00.0070.01016.62
7.4.330.0060.00016.84
7.4.320.0030.00316.42
7.4.300.0030.00316.45
7.4.290.0000.00716.52
7.4.280.0000.00716.41
7.4.270.0030.00316.48
7.4.260.0070.00016.40
7.4.250.0030.00516.31
7.4.240.0000.00716.38
7.4.230.0030.00316.58
7.4.220.0070.01016.55
7.4.210.0100.00416.58
7.4.200.0070.00016.50
7.4.190.0050.00216.34
7.4.160.0170.00016.35
7.4.150.0070.01017.40
7.4.140.0140.00917.86
7.4.130.0090.00716.34
7.4.120.0060.01116.35
7.4.110.0140.00316.50
7.4.100.0100.01316.62
7.4.90.0120.00616.44
7.4.80.0160.00319.39
7.4.70.0130.00816.44
7.4.60.0230.00616.42
7.4.50.0040.00416.23
7.4.40.0060.00922.77
7.4.30.0060.01016.40
7.4.00.0110.00414.65
7.3.330.0000.00513.07
7.3.320.0030.00312.84
7.3.310.0050.00215.98
7.3.300.0040.00416.15
7.3.290.0080.01216.11
7.3.280.0080.00816.15
7.3.270.0060.01117.40
7.3.260.0140.00416.18
7.3.250.0080.01016.43
7.3.240.0060.01016.14
7.3.230.0110.01116.39
7.3.210.0030.01416.45
7.3.200.0000.01719.39
7.3.190.0070.01016.34
7.3.180.0140.00816.12
7.3.170.0030.01216.36
7.3.160.0070.01016.17
7.3.120.0040.01114.37
7.2.330.0180.00016.59
7.2.320.0090.00816.62
7.2.310.0100.00616.40
7.2.300.0090.00816.47
7.2.290.0090.01216.43
7.2.00.0040.00819.40
7.1.100.0060.00617.97
7.1.70.0000.00817.00
7.1.60.0060.00919.82
7.1.50.0100.01316.66
7.1.00.0070.06022.45
7.0.200.0040.00416.61
7.0.140.0070.06322.04
7.0.60.0070.06320.00
7.0.50.0070.05017.86
7.0.40.0000.05720.09
7.0.30.0270.08020.01
7.0.20.0170.04020.16
7.0.10.0270.08020.18
7.0.00.0130.05720.22
5.6.280.0070.07020.89
5.6.210.0100.07320.75
5.6.200.0070.05018.09
5.6.190.0030.04020.61
5.6.180.3800.04020.29
5.6.170.0230.08020.48
5.6.160.0070.07720.33
5.6.150.0030.05318.18
5.6.140.0200.04018.21
5.6.130.0130.06018.11
5.6.120.0100.08321.01
5.6.110.0100.08721.02
5.6.100.0030.06021.14
5.6.90.0130.07720.98
5.6.80.0100.06720.27
5.6.70.0170.07720.51
5.5.350.0300.07020.40
5.5.340.0000.04717.99
5.5.330.0070.07320.40
5.5.320.0370.03320.51
5.5.310.0270.05320.23
5.5.300.0030.05717.89
5.5.290.0000.04317.88
5.5.280.0030.04320.87
5.5.270.0070.06320.76
5.5.260.0130.07720.77
5.5.250.0100.08320.78
5.5.240.0100.07720.05
5.4.450.0700.05719.52
5.4.440.0330.05319.10
5.4.430.0800.04719.50
5.4.420.0770.05719.58
5.4.410.0930.06319.02
5.4.400.0470.07018.59
5.4.390.0370.07018.66
5.4.380.0200.06018.61
5.4.370.0170.05018.61
5.4.360.0070.06018.66
5.4.350.0130.05318.59
5.4.340.0100.05718.70
5.4.320.0060.03712.45
5.4.310.0050.04212.45
5.4.300.0100.04512.45
5.4.290.0100.03612.45
5.4.280.0060.03612.34
5.4.270.0080.03412.34
5.4.260.0070.04712.34
5.4.250.0130.04718.92
5.4.240.0130.05318.94
5.4.230.0070.05318.77
5.4.220.0030.06318.88
5.4.210.0030.05318.88
5.4.200.0100.05018.70
5.4.190.0030.06018.82
5.4.180.0030.06018.77
5.4.170.0100.04718.89
5.4.160.0030.05318.76
5.4.150.0000.06318.72
5.4.140.0100.05016.26
5.4.130.0000.07316.34
5.4.120.0100.05016.29
5.4.110.0100.04716.51
5.4.100.0000.05316.21
5.4.90.0070.05016.35
5.4.80.0030.05316.33
5.4.70.0170.04016.34
5.4.60.0130.04316.21
5.4.50.0070.04716.50
5.4.40.0200.03716.54
5.4.30.0030.05016.31
5.4.20.0000.05316.46
5.4.10.0030.05716.46
5.4.00.0000.06015.85
5.3.290.0050.04112.80
5.3.280.0030.05314.64
5.3.270.0070.05314.61
5.3.260.0100.05014.61
5.3.250.0130.04314.62
5.3.240.0030.06014.49
5.3.230.0030.07714.74
5.3.220.0100.05014.34
5.3.210.0100.07314.58
5.3.200.0230.03314.43
5.3.190.0100.06314.42
5.3.180.0030.05314.58
5.3.170.0030.05714.48
5.3.160.0100.06014.57
5.3.150.0070.06314.58
5.3.140.0070.05714.71
5.3.130.0100.05014.43
5.3.120.0030.05314.56
5.3.110.0030.06314.59
5.3.100.0030.05313.73
5.3.90.0070.05013.89
5.3.80.0100.04714.03
5.3.70.0100.05014.01
5.3.60.0070.05314.09
5.3.50.0100.04313.96
5.3.40.0070.05013.83
5.3.30.0100.04713.82
5.3.20.0070.06713.41
5.3.10.0130.04313.50
5.3.00.0130.05313.52
5.2.170.0100.05711.15
5.2.160.0100.04011.02
5.2.150.0130.04711.14
5.2.140.0030.04711.14
5.2.130.0030.04311.01
5.2.120.0030.05311.14
5.2.110.0070.04011.09
5.2.100.0030.06011.03
5.2.90.0170.04311.21
5.2.80.0170.04011.20
5.2.70.0070.04011.09
5.2.60.0030.04310.96
5.2.50.0070.04011.13
5.2.40.0100.03310.91
5.2.30.0030.06010.96
5.2.20.0030.04010.89
5.2.10.0000.04310.91
5.2.00.0070.03710.60
5.1.60.0030.03710.04
5.1.50.0000.03710.05
5.1.40.0030.0479.90
5.1.30.0070.03310.21
5.1.20.0100.03710.53
5.1.10.0070.03710.02
5.1.00.0030.0379.97
5.0.50.0030.0308.50
5.0.40.0070.0278.25
5.0.30.0100.0338.24
5.0.20.0070.0238.24
5.0.10.0030.0378.25
5.0.00.0000.0438.39
4.4.90.0030.0207.12
4.4.80.0100.0177.12
4.4.70.0000.0307.12
4.4.60.0000.0277.12
4.4.50.0000.0237.12
4.4.40.0070.0307.12
4.4.30.0030.0207.12
4.4.20.0030.0207.12
4.4.10.0000.0277.12
4.4.00.0030.0377.12
4.3.110.0100.0277.12
4.3.100.0030.0207.12
4.3.90.0030.0237.12
4.3.80.0100.0277.12
4.3.70.0030.0277.12
4.3.60.0030.0207.12
4.3.50.0070.0207.12
4.3.40.0070.0307.12
4.3.30.0000.0237.12
4.3.20.0070.0207.12
4.3.10.0000.0237.12
4.3.00.0100.0237.18

preferences:
49.23 ms | 400 KiB | 5 Q