3v4l.org

run code in 300+ PHP versions simultaneously
<?php $variables['options']['attributes'] = [ 'attribute1' => 'value', 'href' => 'http://www.google.com.mx', 'attribute2' => 'value 2' ]; $attributes = array('href' => '') + $variables['options']['attributes']; print_r($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.80.0090.00019.36
8.3.70.0120.00416.38
8.3.60.0180.00318.28
8.3.50.0100.00922.96
8.3.40.0120.00318.59
8.3.30.0140.00018.71
8.3.20.0020.00520.22
8.3.10.0080.00020.48
8.3.00.0080.00020.68
8.2.200.0050.00518.88
8.2.190.0090.00918.25
8.2.180.0140.00316.50
8.2.170.0070.01022.96
8.2.160.0000.01322.13
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00420.97
8.2.120.0030.00626.35
8.2.110.0060.00321.84
8.2.100.0080.00418.16
8.2.90.0050.00319.09
8.2.80.0040.00417.97
8.2.70.0000.00817.63
8.2.60.0150.00017.68
8.2.50.0040.00418.09
8.2.40.0040.00420.58
8.2.30.0040.00419.30
8.2.20.0070.00017.61
8.2.10.0050.00217.93
8.2.00.0070.00017.92
8.1.290.0030.00630.84
8.1.280.0100.01025.92
8.1.270.0000.00823.83
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0030.00623.96
8.1.230.0080.00317.89
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0070.00317.35
8.1.190.0000.00717.10
8.1.180.0040.00418.10
8.1.170.0050.00318.39
8.1.160.0040.00420.75
8.1.150.0040.00418.80
8.1.140.0090.00019.38
8.1.130.0070.00317.64
8.1.120.0040.00417.37
8.1.110.0050.00217.32
8.1.100.0030.00517.28
8.1.90.0030.00517.36
8.1.80.0000.00817.40
8.1.70.0000.00817.30
8.1.60.0040.00417.48
8.1.50.0040.00417.44
8.1.40.0000.01117.34
8.1.30.0040.00417.55
8.1.20.0000.00817.34
8.1.10.0050.00217.49
8.1.00.0040.00417.42
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0030.00318.41
8.0.270.0000.00916.70
8.0.260.0080.00017.10
8.0.250.0000.00616.81
8.0.240.0060.00316.96
8.0.230.0000.00716.84
8.0.220.0030.00316.90
8.0.210.0000.00716.86
8.0.200.0060.00016.86
8.0.190.0000.00816.93
8.0.180.0050.00216.90
8.0.170.0070.00016.83
8.0.160.0080.00016.90
8.0.150.0050.00216.84
8.0.140.0000.00816.80
8.0.130.0030.00313.26
8.0.120.0000.00816.87
8.0.110.0000.00816.84
8.0.100.0040.00416.88
8.0.90.0070.00016.83
8.0.80.0090.00616.76
8.0.70.0070.00016.84
8.0.60.0050.00316.91
8.0.50.0000.00816.69
8.0.30.0160.00316.97
8.0.20.0070.01217.40
8.0.10.0040.00416.95
8.0.00.0090.00816.77
7.4.330.0000.00516.70
7.4.320.0000.00716.50
7.4.300.0000.00816.38
7.4.290.0060.00316.35
7.4.280.0000.00816.43
7.4.270.0000.00716.52
7.4.260.0050.00316.41
7.4.250.0080.00016.29
7.4.240.0000.00716.47
7.4.230.0000.00716.59
7.4.220.0140.00716.47
7.4.210.0080.01016.45
7.4.200.0030.00316.27
7.4.160.0080.00816.67
7.4.150.0090.00617.40
7.4.140.0070.01017.86
7.4.130.0110.00616.31
7.4.120.0070.00916.53
7.4.110.0100.00616.38
7.4.100.0170.00716.42
7.4.90.0070.01016.44
7.4.80.0080.00819.39
7.4.70.0030.01416.41
7.4.60.0060.01616.67
7.4.50.0100.00616.42
7.4.40.0090.01316.30
7.4.30.0100.00616.51
7.4.00.0110.00414.92
7.3.330.0050.00012.98
7.3.320.0060.00013.09
7.3.310.0030.00316.35
7.3.300.0030.00616.09
7.3.290.0030.00316.26
7.3.280.0080.00616.27
7.3.270.0060.01117.40
7.3.260.0100.00616.27
7.3.250.0110.01016.30
7.3.240.0100.00616.28
7.3.230.0110.00816.39
7.3.210.0030.01416.33
7.3.200.0140.00616.43
7.3.190.0040.01616.46
7.3.180.0060.00916.22
7.3.170.0040.01416.45
7.3.160.0120.00316.30
7.2.330.0030.01316.66
7.2.320.0030.01616.49
7.2.310.0030.01316.66
7.2.300.0090.00916.65
7.2.290.0060.00916.63
7.2.60.0170.01016.34
7.1.200.0030.00615.78
7.1.70.0110.00016.88
7.1.60.0070.01019.61
7.1.50.0070.01416.78
7.1.00.0000.08022.54
7.0.200.0920.00014.71
7.0.60.0100.04021.75
7.0.50.0030.07017.80
7.0.40.0070.08719.90
7.0.30.0300.06720.19
7.0.20.0370.07320.33
7.0.10.0070.08320.04
7.0.00.0000.06719.99
5.6.280.0070.06721.07
5.6.210.0000.04320.56
5.6.200.0130.07718.11
5.6.190.0100.07720.27
5.6.180.0270.04320.59
5.6.170.0300.05320.54
5.6.160.0200.05320.46
5.6.150.0030.04718.21
5.6.140.0130.07018.17
5.6.130.0000.04318.18
5.6.120.0070.08320.98
5.6.110.0070.03720.85
5.6.100.0170.07321.07
5.6.90.0030.09021.09
5.6.80.0070.08020.47
5.5.350.0270.08320.37
5.5.340.0070.05017.98
5.5.330.0100.07020.43
5.5.320.0170.04320.31
5.5.310.0230.05320.20
5.5.300.0030.03718.00
5.5.290.0130.03317.98
5.5.280.0100.08320.97
5.5.270.0200.07020.75
5.5.260.0070.06020.83
5.5.250.0130.06320.78
5.5.240.0030.07020.13

preferences:
28.26 ms | 401 KiB | 5 Q