3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = null; $attributes = ['class' => 'control-label']; if ($foo) { $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.60.0140.00718.43
8.3.50.0090.00722.05
8.3.40.0060.00918.57
8.3.30.0090.00918.93
8.3.20.0040.00420.26
8.3.10.0030.00522.09
8.3.00.0000.00722.43
8.2.180.0090.01216.32
8.2.170.0070.01022.96
8.2.160.0030.01019.04
8.2.150.0040.00424.18
8.2.140.0090.00624.66
8.2.130.0090.00926.16
8.2.120.0050.00219.65
8.2.110.0050.00520.38
8.2.100.0060.00617.72
8.2.90.0000.00919.28
8.2.80.0000.00817.97
8.2.70.0060.00317.50
8.2.60.0030.00617.92
8.2.50.0080.00018.07
8.2.40.0040.00418.09
8.2.30.0030.00718.05
8.2.20.0040.00417.68
8.2.10.0050.00217.49
8.2.00.0000.00717.66
8.1.280.0210.00025.92
8.1.270.0040.00418.67
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0090.00319.38
8.1.230.0090.00317.42
8.1.220.0060.00317.74
8.1.210.0030.00618.77
8.1.200.0080.00017.35
8.1.190.0000.00917.39
8.1.180.0000.00718.62
8.1.170.0040.00418.36
8.1.160.0030.00522.14
8.1.150.0070.00418.42
8.1.140.0040.00417.39
8.1.130.0040.00417.80
8.1.120.0000.00717.43
8.1.110.0000.00717.38
8.1.100.0030.00317.42
8.1.90.0000.00717.45
8.1.80.0070.00017.37
8.1.70.0070.00017.25
8.1.60.0040.00417.40
8.1.50.0050.00217.46
8.1.40.0040.00417.48
8.1.30.0040.00417.47
8.1.20.0080.00017.47
8.1.10.0080.00017.34
8.1.00.0030.00517.38
8.0.300.0020.00518.77
8.0.290.0070.00016.58
8.0.280.0030.00318.37
8.0.270.0000.00717.23
8.0.260.0040.00416.75
8.0.250.0000.00716.86
8.0.240.0020.00516.79
8.0.230.0030.00516.81
8.0.220.0030.00316.75
8.0.210.0030.00316.72
8.0.200.0030.00316.89
8.0.190.0050.00516.84
8.0.180.0000.00716.69
8.0.170.0070.00016.91
8.0.160.0040.00416.73
8.0.150.0040.00416.62
8.0.140.0040.00416.69
8.0.130.0050.00013.21
8.0.120.0000.00816.67
8.0.110.0070.00016.87
8.0.100.0000.00816.85
8.0.90.0000.00716.85
8.0.80.0070.01416.77
8.0.70.0050.00216.65
8.0.60.0050.00216.94
8.0.50.0040.00416.76
8.0.30.0090.01016.96
8.0.20.0120.00817.40
8.0.10.0000.00716.90
8.0.00.0090.00916.56
7.4.330.0060.00016.67
7.4.320.0060.00016.53
7.4.300.0030.00316.44
7.4.290.0000.01016.36
7.4.280.0070.00016.37
7.4.270.0020.00516.29
7.4.260.0000.00716.54
7.4.250.0000.00716.39
7.4.240.0070.00016.39
7.4.230.0000.00716.63
7.4.220.0090.00916.47
7.4.210.0070.00716.50
7.4.200.0070.00016.34
7.4.190.0030.00316.39
7.4.160.0030.01316.30
7.4.150.0040.01517.40
7.4.140.0080.00917.86
7.4.130.0070.01116.56
7.4.120.0110.00816.43
7.4.110.0000.02016.36
7.4.100.0120.00616.45
7.4.90.0070.01116.55
7.4.80.0070.01219.39
7.4.70.0090.01516.28
7.4.60.0040.01416.39
7.4.50.0040.00416.25
7.4.40.0160.00022.77
7.4.30.0120.00516.13
7.4.00.0000.01315.02
7.3.330.0060.00012.97
7.3.320.0030.00313.07
7.3.310.0030.00516.20
7.3.300.0000.00716.12
7.3.290.0030.01016.19
7.3.280.0090.00616.13
7.3.270.0170.00017.40
7.3.260.0100.00716.17
7.3.250.0120.00516.25
7.3.240.0070.01016.16
7.3.230.0130.00316.39
7.3.210.0070.01016.29
7.3.200.0110.00619.39
7.3.190.0130.00916.35
7.3.180.0060.00916.40
7.3.170.0120.00316.27
7.3.160.0080.00816.27
7.3.120.0030.01014.61
7.3.10.0080.00516.34
7.3.00.0040.01116.02
7.2.330.0060.01116.35
7.2.320.0170.00216.39
7.2.310.0100.00716.52
7.2.300.0090.00916.50
7.2.290.0060.01016.26
7.2.130.0100.00616.36
7.2.120.0140.00316.50
7.2.110.0060.00616.45
7.2.100.0140.00716.43
7.2.90.0070.00716.43
7.2.80.0060.01316.59
7.2.70.0090.00616.45
7.2.60.0110.00416.40
7.2.50.0130.00716.79
7.2.40.0130.00916.56
7.2.30.0090.00916.20
7.2.20.0180.00416.51
7.2.10.0210.00916.68
7.2.00.0000.01417.76
7.1.250.0060.00915.35
7.1.100.0070.00717.72
7.1.70.0000.00716.98
7.1.60.0070.01419.82
7.1.50.0120.00917.05
7.1.00.0000.05722.43
7.0.200.0100.00516.25
7.0.140.0030.07022.00
7.0.60.0000.08020.08
7.0.50.0070.08017.80
7.0.40.0030.04720.30
7.0.30.0370.06020.02
7.0.20.0070.05020.11
7.0.10.0400.07319.99
7.0.00.0130.06320.09
5.6.280.0070.06721.02
5.6.210.0070.07020.72
5.6.200.0130.04318.21
5.6.190.0030.04320.61
5.6.180.3470.05020.60
5.6.170.0300.07020.50
5.6.160.0130.05020.54
5.6.150.0030.08318.18
5.6.140.0100.06018.07
5.6.130.0200.06318.11
5.6.120.0100.06721.02
5.6.110.0030.07320.96
5.6.100.0130.06320.98
5.6.90.0130.06320.96
5.6.80.0070.04720.35
5.6.70.0130.08320.48
5.5.350.0300.06720.32
5.5.340.0030.08317.96
5.5.330.0030.05020.40
5.5.320.0230.08020.34
5.5.310.0300.07320.18
5.5.300.0000.05717.98
5.5.290.0030.04017.89
5.5.280.0170.07720.77
5.5.270.0130.08020.79
5.5.260.0030.04720.76
5.5.250.0000.04320.46
5.5.240.0100.07320.26
5.4.450.0770.05719.13
5.4.440.0600.06319.13
5.4.430.0770.05019.20
5.4.420.0170.05719.34
5.4.410.0970.05019.05
5.4.400.0330.05018.49
5.4.390.0330.06318.70
5.4.380.0300.06018.46
5.4.370.0130.05018.58
5.4.360.0170.05018.46
5.4.350.0130.05718.56
5.4.340.0230.04318.55
5.4.320.0040.03912.45
5.4.310.0120.04512.45
5.4.300.0030.03912.45
5.4.290.0030.04012.45
5.4.280.0090.03212.34
5.4.270.0080.03612.35
5.4.260.0060.05112.35
5.4.250.0130.06319.00
5.4.240.0070.05018.88
5.4.230.0100.05018.80
5.4.220.0100.05019.02
5.4.210.0100.04718.67
5.4.200.0100.04718.90
5.4.190.0030.05719.02
5.4.180.0100.05018.70
5.4.170.0170.05318.70
5.4.160.0200.03718.66
5.4.150.0070.05318.72
5.4.140.0100.04716.49
5.4.130.0030.05716.25
5.4.120.0070.06716.48
5.4.110.0070.05716.36
5.4.100.0100.05016.36
5.4.90.0130.04716.42
5.4.80.0000.05716.51
5.4.70.0170.04016.41
5.4.60.0000.05716.44
5.4.50.0100.04316.23
5.4.40.0070.04716.48
5.4.30.0170.05016.20
5.4.20.0230.03316.17
5.4.10.0130.04316.46
5.4.00.0070.06715.94
5.3.290.0060.03912.80
5.3.280.0070.05014.45
5.3.270.0170.04314.50
5.3.260.0000.06014.62
5.3.250.0000.05714.31
5.3.240.0030.05714.77
5.3.230.0100.05014.65
5.3.220.0070.05014.57
5.3.210.0130.04714.66
5.3.200.0130.04714.58
5.3.190.0000.06714.57
5.3.180.0070.05014.34
5.3.170.0000.07014.57
5.3.160.0070.05314.71
5.3.150.0030.05314.40
5.3.140.0230.03714.57
5.3.130.0070.05314.70
5.3.120.0100.05014.46
5.3.110.0170.06014.40
5.3.100.0000.05713.91
5.3.90.0000.05313.86
5.3.80.0030.05314.07
5.3.70.0000.05314.12
5.3.60.0200.05314.05
5.3.50.0200.03713.84
5.3.40.0170.04013.95
5.3.30.0030.04713.92
5.3.20.0030.05013.70
5.3.10.0100.04713.34
5.3.00.0030.05313.63
5.2.170.0070.04311.14
5.2.160.0070.05011.05
5.2.150.0070.04311.15
5.2.140.0100.05311.07
5.2.130.0070.03711.07
5.2.120.0030.03711.00
5.2.110.0070.03711.00
5.2.100.0000.04711.11
5.2.90.0000.04311.09
5.2.80.0000.04310.99
5.2.70.0070.04011.19
5.2.60.0030.04310.95
5.2.50.0100.04011.03
5.2.40.0100.05010.76
5.2.30.0130.03310.86
5.2.20.0100.04010.95
5.2.10.0170.03711.03
5.2.00.0030.06310.79
5.1.60.0030.0439.92
5.1.50.0000.0379.92
5.1.40.0100.0409.94
5.1.30.0100.03010.54
5.1.20.0070.05010.43
5.1.10.0030.0379.83
5.1.00.0100.0309.91
5.0.50.0030.0278.51
5.0.40.0070.0238.26
5.0.30.0030.0408.14
5.0.20.0100.0208.23
5.0.10.0000.0308.26
5.0.00.0030.0508.19
4.4.90.0030.0207.41
4.4.80.0030.0207.41
4.4.70.0030.0337.41
4.4.60.0000.0277.41
4.4.50.0070.0237.41
4.4.40.0030.0307.41
4.4.30.0070.0307.41
4.4.20.0030.0207.41
4.4.10.0070.0177.41
4.4.00.0070.0307.41
4.3.110.0030.0207.41
4.3.100.0000.0307.41
4.3.90.0000.0207.41
4.3.80.0030.0337.41
4.3.70.0000.0207.41
4.3.60.0030.0177.41
4.3.50.0000.0237.41
4.3.40.0000.0337.41
4.3.30.0000.0237.41
4.3.20.0070.0177.41
4.3.10.0000.0307.41
4.3.00.0000.0237.18

preferences:
41.33 ms | 401 KiB | 5 Q