3v4l.org

run code in 300+ PHP versions simultaneously
<?php $brand_names = array(1,2,3); $data->brands_ids = array("A","B","C"); $brand_names2 = $brand_names; $data->brands_ids2 = $data->brands_ids; // TODO remove after test $brand_names = array(); // TODO remove after test $data->brands_ids = array(0, 0); // TODO remove after test print_r($brand_names); print_r($data->brands_ids); $brand_names = $brand_names2; $data->brands_ids = $data->brands_ids2; // TODO remove after test print_r($brand_names); print_r($data->brands_ids);

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.0040.01818.25
8.3.50.0120.00821.88
8.3.40.0110.00318.75
8.3.30.0070.00718.79
8.3.20.0080.00018.93
8.3.10.0050.00321.22
8.3.00.0040.00421.85
8.2.180.0040.01116.63
8.2.170.0120.00322.96
8.2.160.0000.01920.35
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0070.00020.96
8.2.110.0000.00922.26
8.2.100.0110.00017.78
8.2.90.0100.00019.08
8.2.80.0030.00617.97
8.2.70.0050.00517.38
8.2.60.0000.00917.80
8.2.50.0000.00818.07
8.2.40.0040.00418.22
8.2.30.0000.00819.79
8.2.20.0070.00017.54
8.2.10.0000.00817.61
8.2.00.0090.00017.72
8.1.280.0090.00625.92
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0110.01122.34
8.1.230.0000.01120.89
8.1.220.0000.00818.77
8.1.210.0000.00918.90
8.1.200.0030.00617.22
8.1.190.0070.00017.39
8.1.180.0040.00418.10
8.1.170.0090.00018.51
8.1.160.0000.00718.86
8.1.150.0050.00318.57
8.1.140.0000.00717.37
8.1.130.0070.00017.70
8.1.120.0050.00217.45
8.1.110.0070.00017.39
8.1.100.0070.00017.30
8.1.90.0040.00417.42
8.1.80.0030.00317.43
8.1.70.0000.00717.25
8.1.60.0030.00517.56
8.1.50.0030.00517.46
8.1.40.0000.00917.51
8.1.30.0030.00617.57
8.1.20.0050.00317.65
8.1.10.0040.00417.56
8.1.00.0040.00417.37
8.0.300.0000.00719.92
8.0.290.0040.00416.93
8.0.280.0000.00718.31
8.0.270.0070.00017.17
8.0.260.0040.00416.87
8.0.250.0000.00716.97
8.0.240.0110.00016.75
8.0.230.0030.00316.90
8.0.220.0000.00716.89
8.0.210.0070.00016.93
8.0.200.0070.00016.84
8.0.190.0030.00616.91
8.0.180.0040.00416.94
8.0.170.0040.00416.87
8.0.160.0030.00316.84
8.0.150.0060.00316.91
8.0.140.0030.00916.88
8.0.130.0050.00013.36
8.0.120.0040.00516.74
8.0.110.0000.00716.88
8.0.100.0040.00316.82
8.0.90.0050.00316.89
8.0.80.0090.01116.93
8.0.70.0000.00716.80
8.0.60.0040.00416.76
8.0.50.0000.00816.88
8.0.30.0180.00517.03
8.0.20.0120.00717.41
8.0.10.0030.00617.03
8.0.00.0120.00616.68
7.4.330.0020.00214.68
7.4.320.0000.00916.54
7.4.300.0000.00616.36
7.4.290.0000.00716.52
7.4.280.0030.00516.34
7.4.270.0030.00316.46
7.4.260.0060.00013.19
7.4.250.0000.00716.41
7.4.240.0000.00716.42
7.4.230.0070.00016.31
7.4.220.0120.00616.49
7.4.210.0070.00716.52
7.4.200.0000.00716.61
7.4.190.0050.00216.39
7.4.160.0100.00616.54
7.4.150.0090.00917.40
7.4.140.0100.01017.86
7.4.130.0110.01116.46
7.4.120.0070.01016.38
7.4.110.0100.00716.31
7.4.100.0130.00316.41
7.4.90.0080.01116.52
7.4.80.0090.00919.37
7.4.70.0050.01516.33
7.4.60.0130.00316.29
7.4.50.0040.00416.46
7.4.40.0070.00722.52
7.4.30.0030.01416.53
7.4.00.0060.01015.14
7.3.330.0050.00013.06
7.3.320.0030.00313.15
7.3.310.0070.00016.29
7.3.300.0030.00316.36
7.3.290.0060.00916.29
7.3.280.0110.00716.31
7.3.270.0070.01017.40
7.3.260.0130.00818.24
7.3.250.0170.01216.29
7.3.240.0070.01016.65
7.3.230.0150.00316.56
7.3.210.0080.00816.32
7.3.200.0080.00819.39
7.3.190.0100.00716.37
7.3.180.0100.01316.25
7.3.170.0060.01316.27
7.3.160.0060.01116.28
7.3.120.0030.01015.01
7.2.330.0120.00616.48
7.2.320.0100.01016.50
7.2.310.0070.01316.62
7.2.300.0030.01416.66
7.2.290.0040.01616.59
7.2.00.0070.01019.31
7.1.100.0060.00318.18
7.1.70.0030.00517.02
7.1.60.0040.00719.40
7.1.50.0070.01416.71
7.1.00.0030.07322.36
7.0.200.0000.00716.69
7.0.140.0130.06021.95
7.0.60.0170.03021.73
7.0.50.0000.04317.82
7.0.40.0030.06019.96
7.0.30.0330.05320.13
7.0.20.0230.05720.24
7.0.10.0100.08320.26
7.0.00.0070.05320.22
5.6.280.0030.07320.89
5.6.210.0130.05020.47
5.6.200.0100.08018.28
5.6.190.0070.08720.64
5.6.180.0300.04320.61
5.6.170.0400.07720.50
5.6.160.0030.07020.51
5.6.150.0170.06718.33
5.6.140.0030.08318.22
5.6.130.0130.04318.15
5.6.120.0000.04720.98
5.6.110.0070.08021.12
5.6.100.0130.04721.08
5.6.90.0070.04721.11
5.6.80.0070.04320.38
5.5.350.0100.07020.43
5.5.340.0070.04717.99
5.5.330.0070.06320.37
5.5.320.0300.05020.30
5.5.310.0230.04720.24
5.5.300.0100.08717.91
5.5.290.0070.03717.94
5.5.280.0030.05720.64
5.5.270.0070.08720.86
5.5.260.0000.04720.76
5.5.250.0230.06020.75
5.5.240.0100.04020.23
5.4.450.4130.05019.55
5.4.440.2570.04719.25
5.4.430.3770.04019.31
5.4.420.4030.02719.54
5.4.410.0030.04319.32
5.4.400.3800.03719.15
5.4.390.3770.03719.22
5.4.380.3970.03719.22
5.4.370.3730.03719.04
5.4.360.3870.03719.11
5.4.350.0200.04319.13
5.4.340.4330.04319.17
5.4.320.3630.03719.26
5.4.310.3930.04019.13
5.4.300.3970.03318.92
5.4.290.3630.04319.17
5.4.280.3670.03718.94
5.4.270.3730.03318.93
5.4.260.4130.03019.21
5.4.250.3300.03319.21
5.4.240.3900.04019.20
5.4.230.3570.03318.98
5.4.220.4330.05319.09
5.4.210.3730.03319.21
5.4.200.4000.03019.00
5.4.190.1830.03719.13
5.4.180.4270.03318.93
5.4.170.4000.03319.14
5.4.160.3700.04018.96
5.4.150.3600.04019.02
5.4.140.3030.04316.43
5.4.130.2430.02716.45
5.4.120.3200.04016.55
5.4.110.3430.03016.53
5.4.100.3870.03016.44
5.4.90.3600.04016.63
5.4.80.3670.03716.51
5.4.70.3930.03716.50
5.4.60.3800.03316.43
5.4.50.3830.04016.60
5.4.40.4070.03316.41
5.4.30.4030.03316.23
5.4.20.3900.03716.45
5.4.10.4000.03016.61
5.4.00.4030.03015.79
5.3.290.3930.04014.67
5.3.280.3870.04014.62
5.3.270.3770.04014.64
5.3.260.3800.04314.52
5.3.250.3370.04014.61
5.3.240.2600.03714.52
5.3.230.2800.03014.63
5.3.220.3000.04014.48
5.3.210.3230.04014.71
5.3.200.3630.03714.57
5.3.190.3930.04014.70
5.3.180.2300.04014.44
5.3.170.3630.03314.59
5.3.160.4000.04314.58
5.3.150.4130.03714.46
5.3.140.3800.04014.59
5.3.130.3770.03014.43
5.3.120.3930.03714.43
5.3.110.4600.03714.59
5.3.100.4030.04014.05
5.3.90.3530.04314.06
5.3.80.3930.03713.98
5.3.70.3670.03714.17
5.3.60.3930.02714.15
5.3.50.4170.03714.00
5.3.40.3630.03713.96
5.3.30.4000.03713.96
5.3.20.3670.03713.60
5.3.10.3830.03713.67
5.3.00.3630.03313.80
5.2.170.3600.02711.03
5.2.160.3370.03311.12
5.2.150.3230.02711.06
5.2.140.3370.03011.09
5.2.130.3400.03311.15
5.2.120.3270.03711.10
5.2.110.3070.02711.25
5.2.100.3270.02311.15
5.2.90.2970.03011.11
5.2.80.3030.03011.09
5.2.70.3300.03011.23
5.2.60.3170.02711.05
5.2.50.3400.03011.17
5.2.40.2700.03011.04
5.2.30.2670.02010.87
5.2.20.2530.03010.84
5.2.10.2800.02310.93
5.2.00.2600.03010.86
5.1.60.2730.02710.00
5.1.50.2200.02710.04
5.1.40.2600.0209.99
5.1.30.2930.02010.36
5.1.20.2630.03310.49
5.1.10.2430.02710.13
5.1.00.2770.02010.03
5.0.50.1300.0178.54
5.0.40.1200.0238.45
5.0.30.1430.0308.45
5.0.20.1730.0208.45
5.0.10.1500.0208.45
5.0.00.2030.0278.45
4.4.90.1270.0178.45
4.4.80.1370.0208.45
4.4.70.1300.0208.45
4.4.60.1400.0178.45
4.4.50.1270.0108.45
4.4.40.1430.0278.45
4.4.30.1500.0208.45
4.4.20.1430.0178.45
4.4.10.1500.0108.45
4.4.00.1270.0238.45
4.3.110.1200.0138.45
4.3.100.1500.0178.45
4.3.90.1630.0138.45
4.3.80.1900.0208.45
4.3.70.1430.0108.45
4.3.60.2130.0138.45
4.3.50.1530.0178.45
4.3.40.1870.0238.45
4.3.30.0730.0178.45
4.3.20.1000.0138.45
4.3.10.0830.0178.45
4.3.00.0800.0208.45

preferences:
43.69 ms | 401 KiB | 5 Q