3v4l.org

run code in 300+ PHP versions simultaneously
<?php $brand_names = array(1,2,3); if( ! empty($sale_Ids_for_brands)) echo "something"; $data->brands_ids = FALSE; if(empty($data->brands_ids)) echo "yes empty"; $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.01118.56
8.3.50.0120.00721.20
8.3.40.0120.00318.70
8.3.30.0070.00718.96
8.3.20.0080.00018.85
8.3.10.0040.00421.09
8.3.00.0040.00423.48
8.2.180.0130.00716.75
8.2.170.0110.00422.96
8.2.160.0150.00020.11
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00819.66
8.2.110.0090.00020.53
8.2.100.0000.01317.91
8.2.90.0040.00419.26
8.2.80.0080.00018.05
8.2.70.0050.00317.75
8.2.60.0030.00617.90
8.2.50.0040.00418.07
8.2.40.0080.00018.22
8.2.30.0020.00519.58
8.2.20.0050.00217.75
8.2.10.0050.00317.89
8.2.00.0070.00017.81
8.1.280.0070.01425.92
8.1.270.0050.00223.99
8.1.260.0120.00326.35
8.1.250.0040.00428.09
8.1.240.0070.00322.52
8.1.230.0080.00320.85
8.1.220.0030.00618.77
8.1.210.0040.00418.95
8.1.200.0000.01017.23
8.1.190.0000.00917.66
8.1.180.0080.00018.10
8.1.170.0080.00018.53
8.1.160.0050.00318.95
8.1.150.0030.00718.51
8.1.140.0050.00317.42
8.1.130.0000.00717.91
8.1.120.0090.00017.50
8.1.110.0000.00717.39
8.1.100.0070.00017.38
8.1.90.0060.00317.41
8.1.80.0030.00317.46
8.1.70.0000.00817.48
8.1.60.0050.00317.54
8.1.50.0050.00317.47
8.1.40.0090.00017.55
8.1.30.0040.00417.70
8.1.20.0000.00817.51
8.1.10.0040.00417.47
8.1.00.0000.00817.49
8.0.300.0040.00420.07
8.0.290.0070.00017.18
8.0.280.0070.00018.44
8.0.270.0000.00717.22
8.0.260.0070.00016.93
8.0.250.0070.00017.04
8.0.240.0030.00516.98
8.0.230.0070.00016.91
8.0.220.0030.00317.04
8.0.210.0000.00717.01
8.0.200.0000.00717.02
8.0.190.0000.00917.00
8.0.180.0070.00016.98
8.0.170.0030.00616.92
8.0.160.0030.00516.88
8.0.150.0020.00516.95
8.0.140.0030.00516.93
8.0.130.0000.00613.38
8.0.120.0060.00316.95
8.0.110.0040.00416.96
8.0.100.0000.00816.90
8.0.90.0050.00216.98
8.0.80.0070.00716.95
8.0.70.0000.00816.86
8.0.60.0040.00416.84
8.0.50.0040.00416.96
8.0.30.0120.00716.99
8.0.20.0090.00917.40
8.0.10.0070.00017.02
8.0.00.0100.00916.88
7.4.330.0000.00514.77
7.4.320.0030.00316.64
7.4.300.0060.00016.59
7.4.290.0000.00716.46
7.4.280.0030.00316.47
7.4.270.0030.00316.62
7.4.260.0030.00313.29
7.4.250.0070.00016.53
7.4.240.0040.00416.50
7.4.230.0070.00016.53
7.4.220.0100.01016.45
7.4.210.0100.00716.54
7.4.200.0000.00716.45
7.4.190.0000.00716.71
7.4.160.0140.00316.56
7.4.150.0120.00417.40
7.4.140.0100.00717.86
7.4.130.0060.01416.41
7.4.120.0120.00716.37
7.4.110.0070.01416.47
7.4.100.0060.01216.59
7.4.90.0100.00816.41
7.4.80.0030.01619.39
7.4.70.0110.00616.50
7.4.60.0060.01016.40
7.4.50.0030.00616.51
7.4.40.0040.01522.52
7.4.30.0130.00316.50
7.4.00.0040.01115.07
7.3.330.0000.00513.26
7.3.320.0030.00313.25
7.3.310.0030.00316.41
7.3.300.0030.00316.29
7.3.290.0100.00716.30
7.3.280.0080.00816.39
7.3.270.0180.00017.40
7.3.260.0110.00718.24
7.3.250.0120.00716.53
7.3.240.0070.01016.48
7.3.230.0140.00716.39
7.3.210.0180.00516.54
7.3.200.0100.00719.39
7.3.190.0030.01316.40
7.3.180.0070.01016.66
7.3.170.0160.00316.33
7.3.160.0070.01316.38
7.3.120.0070.01015.14
7.2.330.0070.01716.64
7.2.320.0140.00816.52
7.2.310.0140.00916.64
7.2.300.0120.01116.45
7.2.290.0120.00816.76
7.2.00.0000.01219.12
7.1.200.0040.01115.77
7.1.100.0110.00318.27
7.1.70.0030.00717.31
7.1.60.0060.01619.40
7.1.50.0100.01016.70
7.1.00.0000.05722.41
7.0.200.0030.00316.57
7.0.140.0030.07021.92
7.0.100.0200.07319.97
7.0.90.0130.07719.98
7.0.80.0430.05019.83
7.0.70.0130.04319.85
7.0.60.0070.07019.86
7.0.50.0070.07320.31
7.0.40.0030.07020.03
7.0.30.0030.08319.99
7.0.20.0030.08319.95
7.0.10.0170.07319.99
7.0.00.0100.09020.09
5.6.280.0000.07721.11
5.6.250.0070.08720.66
5.6.240.0170.06020.58
5.6.230.0070.09320.63
5.6.220.0030.07720.66
5.6.210.0100.08320.63
5.6.200.0130.08320.95
5.6.190.0070.08321.08
5.6.180.0070.08320.91
5.6.170.0100.04320.90
5.6.160.0100.08320.99
5.6.150.0100.08021.03
5.6.140.0100.07720.97
5.6.130.0100.08321.05
5.6.120.0170.06721.05
5.6.110.0100.06321.05
5.6.100.0070.08720.94
5.6.90.0170.04020.94
5.6.80.0070.08320.28
5.6.70.0000.05320.30
5.6.60.0130.07020.48
5.6.50.0100.05720.38
5.6.40.0070.08020.34
5.6.30.0030.08720.26
5.6.20.0100.08020.47
5.6.10.0100.07720.47
5.6.00.0100.07720.25
5.5.380.0100.04720.52
5.5.370.0100.07320.29
5.5.360.0100.07320.45
5.5.350.0100.08020.39
5.5.340.0070.04320.72
5.5.330.0100.07720.84
5.5.320.0070.05720.87
5.5.310.0130.03720.78
5.5.300.0070.08320.70
5.5.290.0030.08720.86
5.5.280.0070.08020.81
5.5.270.0100.04720.76
5.5.260.0070.04020.69
5.5.250.0030.08320.65
5.5.240.0000.08720.20
5.5.230.0130.07020.15
5.5.220.0070.08320.24
5.5.210.0170.07020.21
5.5.200.0030.03720.23
5.5.190.0130.06720.09
5.5.180.0000.04320.16
5.5.160.0130.06320.18
5.5.150.0030.06320.09
5.5.140.0130.06020.16
5.5.130.0130.07320.19
5.5.120.0130.04020.03
5.5.110.0100.06720.05
5.5.100.0130.06720.05
5.5.90.0130.05019.89
5.5.80.0030.07719.91
5.5.70.0170.06720.10
5.5.60.0030.06320.10
5.5.50.0070.06719.91
5.5.40.0030.06720.07
5.5.30.0070.07319.97
5.5.20.0000.05020.09
5.5.10.0200.06719.99
5.5.00.0000.08320.02
5.4.450.0030.08019.54
5.4.440.0130.07719.45
5.4.430.0130.06319.41
5.4.420.0030.08019.35
5.4.410.0070.08719.24
5.4.400.0070.05718.85
5.4.390.0100.07319.03
5.4.380.0070.07318.88
5.4.370.0030.04718.88
5.4.360.0030.06719.14
5.4.350.0070.04019.03
5.4.340.0130.07019.13
5.4.320.0030.08318.95
5.4.310.0170.06319.02
5.4.300.0030.06318.94
5.4.290.0070.07019.08
5.4.280.0100.07018.94
5.4.270.0200.06318.88
5.4.260.0100.03719.04
5.4.250.0100.07719.12
5.4.240.0030.08319.08
5.4.230.0170.06318.84
5.4.220.0030.04718.95
5.4.210.0000.08019.03
5.4.200.0200.06019.22
5.4.190.0070.03719.01
5.4.180.0070.04319.03
5.4.170.0070.07018.93
5.4.160.0070.07719.14
5.4.150.0100.07319.21
5.4.140.0070.07316.37
5.4.130.0000.05016.39
5.4.120.0100.07316.26
5.4.110.0070.06316.47
5.4.100.0000.08316.50
5.4.90.0130.06716.43
5.4.80.0030.07316.45
5.4.70.0130.06716.42
5.4.60.0030.06316.39
5.4.50.0030.07016.29
5.4.40.0070.06716.49
5.4.30.0100.03716.33
5.4.20.0030.04016.45
5.4.10.0030.04316.40
5.4.00.0030.07315.72
5.3.290.0170.04014.61
5.3.280.0100.07714.68
5.3.270.0170.07314.63
5.3.260.0000.05714.60
5.3.250.0070.07014.71
5.3.240.0070.07014.67
5.3.230.0000.04714.65
5.3.220.0170.05014.66
5.3.210.0070.08314.63
5.3.200.0070.08314.67
5.3.190.0070.07714.55
5.3.180.0070.04014.48
5.3.170.0030.07714.70
5.3.160.0030.08314.48
5.3.150.0070.04714.57
5.3.140.0130.06314.53
5.3.130.0030.04014.60
5.3.120.0030.06014.47
5.3.110.0130.04714.61
5.3.100.0000.04714.09
5.3.90.0000.07713.93
5.3.80.0100.04014.05
5.3.70.0130.07014.05
5.3.60.0030.07714.10
5.3.50.0100.06013.92
5.3.40.0030.07313.92
5.3.30.0000.07713.93
5.3.20.0130.04013.75
5.3.10.0170.06313.79
5.3.00.0170.03713.63
5.2.170.0070.04311.04
5.2.160.0030.03711.04
5.2.150.0070.06011.15
5.2.140.0000.04011.20
5.2.130.0070.06311.20
5.2.120.0070.06011.13
5.2.110.0030.06011.15
5.2.100.0070.03011.10
5.2.90.0000.03011.23
5.2.80.0100.02311.12
5.2.70.0100.05010.98
5.2.60.0030.03711.11
5.2.50.0000.05311.04
5.2.40.0070.03011.06
5.2.30.0030.05310.89
5.2.20.0030.05711.05
5.2.10.0100.05310.97
5.2.00.0030.03310.61
5.1.60.0000.03710.06
5.1.50.0030.0379.98
5.1.40.0100.0509.85
5.1.30.0070.04310.19
5.1.20.0000.03010.43
5.1.10.0100.05310.11
5.1.00.0000.03710.07
5.0.50.0030.0378.54
5.0.40.0030.0438.52
5.0.30.0000.0578.23
5.0.20.0070.0338.28
5.0.10.0030.0408.23
5.0.00.0000.0378.16
4.4.90.0000.0337.41
4.4.80.0030.0177.41
4.4.70.0000.0207.41
4.4.60.0000.0277.41
4.4.50.0070.0277.41
4.4.40.0000.0507.41
4.4.30.0070.0137.41
4.4.20.0030.0337.41
4.4.10.0030.0237.41
4.4.00.0030.0237.41
4.3.110.0030.0377.41
4.3.100.0070.0237.41
4.3.90.0070.0307.41
4.3.80.0030.0437.41
4.3.70.0000.0377.41
4.3.60.0030.0307.41
4.3.50.0000.0337.41
4.3.40.0070.0507.41
4.3.30.0000.0277.41
4.3.20.0030.0377.41
4.3.10.0000.0377.41
4.3.00.0000.0277.41

preferences:
53.95 ms | 401 KiB | 5 Q