3v4l.org

run code in 300+ PHP versions simultaneously
<?php $allowed = array('outbound_status_id', 'billing_status_id', 'date_released'); print_r(array_flip($allowed)); $cleanValues = array('gross'=>1, 'tare'=>2, 'outbound_status_id'=>3, 'driver_name'=>'bob', 'quantity'=>'awesome'); print_r(array_intersect($cleanValues, array_flip($allowed))); print_r(array_intersect_assoc($cleanValues, array_flip($allowed))); print_r(array_diff($cleanValues, array_flip($allowed))); print_r(array_diff_assoc($cleanValues, array_flip($allowed)));

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.0060.00918.18
8.3.50.0120.00521.22
8.3.40.0040.01118.68
8.3.30.0100.00318.88
8.3.20.0080.00020.21
8.3.10.0000.00820.41
8.3.00.0040.00419.25
8.2.180.0100.01016.50
8.2.170.0070.00722.96
8.2.160.0100.00320.52
8.2.150.0030.00624.18
8.2.140.0080.00024.66
8.2.130.0060.00326.16
8.2.120.0050.00220.93
8.2.110.0060.00322.15
8.2.100.0000.01217.78
8.2.90.0060.00319.07
8.2.80.0000.00817.97
8.2.70.0030.00617.50
8.2.60.0040.00417.90
8.2.50.0030.00618.07
8.2.40.0030.00617.91
8.2.30.0080.00019.34
8.2.20.0030.00617.67
8.2.10.0080.00018.04
8.2.00.0040.00417.75
8.1.280.0150.00325.92
8.1.270.0080.00023.83
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0040.00723.88
8.1.230.0090.00319.04
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0150.00017.13
8.1.190.0000.00917.22
8.1.180.0000.00818.10
8.1.170.0030.00518.66
8.1.160.0040.00421.97
8.1.150.0050.00318.72
8.1.140.0070.00017.38
8.1.130.0030.00317.85
8.1.120.0000.00717.28
8.1.110.0040.00417.42
8.1.100.0000.00817.42
8.1.90.0000.00717.45
8.1.80.0030.00517.44
8.1.70.0030.00317.24
8.1.60.0000.00817.41
8.1.50.0000.00817.45
8.1.40.0030.00717.31
8.1.30.0060.00317.60
8.1.20.0040.00417.58
8.1.10.0040.00417.38
8.1.00.0040.00417.29
8.0.300.0070.00018.77
8.0.290.0050.00316.58
8.0.280.0000.00818.28
8.0.270.0030.00317.24
8.0.260.0050.00317.18
8.0.250.0070.00016.86
8.0.240.0000.00716.77
8.0.230.0040.00416.84
8.0.220.0000.00716.86
8.0.210.0000.00816.78
8.0.200.0000.00616.89
8.0.190.0050.00316.79
8.0.180.0070.00016.75
8.0.170.0040.00416.77
8.0.160.0050.00316.70
8.0.150.0000.00716.81
8.0.140.0090.00016.75
8.0.130.0000.00513.28
8.0.120.0060.00316.78
8.0.110.0040.00416.86
8.0.100.0070.00016.88
8.0.90.0040.00416.70
8.0.80.0100.00716.72
8.0.70.0000.00716.70
8.0.60.0050.00216.68
8.0.50.0000.00716.77
8.0.30.0100.01216.87
8.0.20.0080.01017.40
8.0.10.0040.00416.98
8.0.00.0110.00816.60
7.4.330.0060.00015.00
7.4.320.0030.00316.57
7.4.300.0060.00016.34
7.4.290.0030.00316.32
7.4.280.0000.00716.43
7.4.270.0070.00016.46
7.4.260.0070.00016.43
7.4.250.0040.00416.40
7.4.240.0060.00116.44
7.4.230.0030.00516.55
7.4.220.0110.00616.55
7.4.210.0110.00716.54
7.4.200.0040.00416.26
7.4.160.0100.00616.35
7.4.150.0150.00417.40
7.4.140.0060.01317.86
7.4.130.0090.00716.36
7.4.120.0060.01116.39
7.4.110.0080.00816.43
7.4.100.0070.01016.31
7.4.90.0120.00616.48
7.4.80.0130.00316.36
7.4.70.0100.01316.30
7.4.60.0120.00416.34
7.4.50.0030.00616.50
7.4.40.0100.00716.45
7.4.30.0090.00816.49
7.4.00.0120.00315.05
7.3.330.0030.00313.06
7.3.320.0030.00312.98
7.3.310.0000.00716.19
7.3.300.0020.00516.13
7.3.290.0040.01116.18
7.3.280.0100.00916.18
7.3.270.0070.01017.40
7.3.260.0090.01016.43
7.3.250.0120.00816.07
7.3.240.0140.00716.46
7.3.230.0070.01016.39
7.3.210.0110.00716.21
7.3.200.0100.00719.39
7.3.190.0130.01316.30
7.3.180.0040.01316.23
7.3.170.0040.01416.30
7.3.160.0100.01016.36
7.2.330.0100.00916.64
7.2.320.0110.00716.46
7.2.310.0060.01116.30
7.2.300.0110.00616.28
7.2.290.0090.00816.42
7.2.00.0100.00318.96
7.1.100.0030.00818.00
7.1.70.0040.00417.05
7.1.60.0100.00719.32
7.1.50.0070.01516.65
7.1.00.0070.07322.27
7.0.200.0030.00316.66
7.0.140.0070.07021.95
7.0.60.0130.07319.97
7.0.50.0070.03717.83
7.0.40.0070.08020.21
7.0.30.0230.08720.30
7.0.20.0330.04720.19
7.0.10.0100.07020.30
7.0.00.0030.09320.19
5.6.280.0070.07021.13
5.6.210.0100.07720.69
5.6.200.0100.08018.07
5.6.190.0100.04720.41
5.6.180.0530.07320.67
5.6.170.0300.07320.50
5.6.160.0030.04020.52
5.6.150.0070.04018.11
5.6.140.0070.05018.07
5.6.130.0100.04018.17
5.6.120.0030.05320.93
5.6.110.0130.08020.97
5.6.100.0130.04020.90
5.6.90.0100.08720.97
5.6.80.0100.08020.39
5.5.350.0130.05020.37
5.5.340.0030.04017.92
5.5.330.0100.07720.19
5.5.320.0200.04320.27
5.5.310.0200.07020.28
5.5.300.0100.07317.93
5.5.290.0030.04717.99
5.5.280.0170.07720.88
5.5.270.0000.05320.94
5.5.260.0100.08720.89
5.5.250.0070.03720.66
5.5.240.0170.05720.25
5.4.450.0070.06319.41
5.4.440.1000.06719.10
5.4.430.0730.06319.32
5.4.420.0970.06019.41
5.4.410.1000.05319.14
5.4.400.0670.05019.15
5.4.390.0970.05319.08
5.4.380.0270.06018.46
5.4.370.0270.06018.69
5.4.360.0370.05318.49
5.4.350.0370.06018.70
5.4.340.0300.05018.61
5.4.320.0070.05112.46
5.4.310.0070.03612.45
5.4.300.0080.04012.46
5.4.290.0080.04012.45
5.4.280.0080.03612.35
5.4.270.0060.04012.35
5.4.260.0120.03312.35
5.4.250.0060.03912.35
5.4.240.0040.03612.35
5.4.230.0040.03812.34
5.4.220.0050.03612.34
5.4.210.0060.03412.34
5.4.200.0050.04412.34
5.4.190.0060.03612.34
5.4.180.0040.03712.34
5.4.170.0110.03812.35
5.4.160.0060.03912.34
5.4.150.0060.03512.34
5.4.140.0060.04212.02
5.4.130.0040.03812.01
5.4.120.0100.04311.97
5.4.110.0090.03811.97
5.4.100.0060.03911.97
5.4.90.0030.04011.97
5.4.80.0070.04011.97
5.4.70.0050.03411.97
5.4.60.0070.03111.96
5.4.50.0050.03511.96
5.4.40.0020.03711.95
5.4.30.0050.03611.95
5.4.20.0100.03511.95
5.4.10.0100.03511.95
5.4.00.0070.04211.44
5.3.290.0070.03812.80
5.3.280.0040.04012.71
5.3.270.0060.03912.72
5.3.260.0060.03712.71
5.3.250.0070.04212.72
5.3.240.0070.03912.72
5.3.230.0120.04012.71
5.3.220.0080.03512.68
5.3.210.0030.04112.68
5.3.200.0080.04312.68
5.3.190.0050.03912.68
5.3.180.0070.03912.67
5.3.170.0030.03812.67
5.3.160.0040.03712.67
5.3.150.0100.03212.68
5.3.140.0090.03612.66
5.3.130.0020.04312.66
5.3.120.0060.04012.66
5.3.110.0040.04112.66
5.3.100.0080.03612.12
5.3.90.0040.03812.08
5.3.80.0110.03512.08
5.3.70.0050.03612.08
5.3.60.0090.03812.06
5.3.50.0050.03612.00
5.3.40.0050.03812.00
5.3.30.0050.03511.94
5.3.20.0050.03611.73
5.3.10.0020.03711.69
5.3.00.0050.03611.68
5.2.170.0080.0329.18
5.2.160.0050.0309.18
5.2.150.0040.0309.18
5.2.140.0030.0389.18
5.2.130.0050.0309.14
5.2.120.0060.0349.14
5.2.110.0030.0339.14
5.2.100.0060.0349.14
5.2.90.0060.0299.14
5.2.80.0040.0369.13
5.2.70.0040.0339.14
5.2.60.0050.0359.09
5.2.50.0050.0299.05
5.2.40.0060.0309.03
5.2.30.0030.0379.01
5.2.20.0040.0339.00
5.2.10.0050.0338.93
5.2.00.0050.0318.80
5.1.60.0030.0258.08
5.1.50.0060.0268.08
5.1.40.0050.0238.06
5.1.30.0040.0258.41
5.1.20.0080.0248.43
5.1.10.0040.0278.16
5.1.00.0050.0288.16
5.0.50.0030.0206.63
5.0.40.0030.0196.49
5.0.30.0040.0306.31
5.0.20.0030.0196.27
5.0.10.0040.0226.25
5.0.00.0030.0326.25
4.4.90.0040.0174.78
4.4.80.0020.0164.76
4.4.70.0020.0194.75
4.4.60.0040.0184.75
4.4.50.0070.0214.77
4.4.40.0050.0234.71
4.4.30.0020.0174.76
4.4.20.0060.0134.85
4.4.10.0040.0234.85
4.4.00.0010.0294.76
4.3.110.0050.0164.66
4.3.100.0040.0204.67
4.3.90.0030.0154.63
4.3.80.0090.0234.59
4.3.70.0010.0164.63
4.3.60.0020.0154.63
4.3.50.0030.0194.63
4.3.40.0010.0274.54
4.3.30.0060.0123.30
4.3.20.0040.0143.28
4.3.10.0030.0153.23
4.3.00.0070.0206.85

preferences:
60.19 ms | 401 KiB | 5 Q