3v4l.org

run code in 300+ PHP versions simultaneously
<?php $allowed = array('outbound_status_id', 'billing_status_id', 'date_released'); $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)));

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.0070.00718.55
8.3.50.0160.00521.20
8.3.40.0110.00418.84
8.3.30.0150.00318.79
8.3.20.0030.00620.07
8.3.10.0040.00420.27
8.3.00.0050.00319.26
8.2.180.0180.00316.38
8.2.170.0140.00322.96
8.2.160.0110.00419.21
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00926.16
8.2.120.0040.00422.14
8.2.110.0150.00622.14
8.2.100.0080.00417.78
8.2.90.0050.00319.22
8.2.80.0000.00817.97
8.2.70.0050.00317.49
8.2.60.0070.00017.68
8.2.50.0000.00818.07
8.2.40.0070.00018.20
8.2.30.0070.00019.24
8.2.20.0000.00717.52
8.2.10.0000.00717.97
8.2.00.0060.00317.52
8.1.280.0170.00725.92
8.1.270.0090.00023.92
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0060.00323.96
8.1.230.0100.00019.15
8.1.220.0090.00017.74
8.1.210.0080.00018.77
8.1.200.0060.00617.10
8.1.190.0080.00017.11
8.1.180.0040.00418.10
8.1.170.0040.00418.66
8.1.160.0050.00221.89
8.1.150.0000.00718.81
8.1.140.0040.00417.38
8.1.130.0000.00717.87
8.1.120.0040.00417.27
8.1.110.0040.00417.41
8.1.100.0070.00017.46
8.1.90.0040.00417.40
8.1.80.0000.00717.45
8.1.70.0070.00017.36
8.1.60.0030.00617.52
8.1.50.0000.00817.34
8.1.40.0030.00817.32
8.1.30.0040.00417.45
8.1.20.0070.00017.54
8.1.10.0030.00517.29
8.1.00.0000.00717.38
8.0.300.0040.00418.77
8.0.290.0030.00616.58
8.0.280.0030.00318.40
8.0.270.0030.00517.04
8.0.260.0060.00017.12
8.0.250.0000.00616.84
8.0.240.0070.00016.86
8.0.230.0030.00416.77
8.0.220.0030.00316.79
8.0.210.0040.00416.71
8.0.200.0040.00416.91
8.0.190.0040.00416.76
8.0.180.0000.00716.91
8.0.170.0040.00416.80
8.0.160.0000.00716.87
8.0.150.0060.00316.63
8.0.140.0070.00016.73
8.0.130.0000.00513.18
8.0.120.0070.00016.82
8.0.110.0040.00416.77
8.0.100.0030.00316.88
8.0.90.0000.00716.68
8.0.80.0030.01316.69
8.0.70.0070.00016.67
8.0.60.0000.00716.63
8.0.50.0000.00716.80
8.0.30.0100.00916.99
8.0.20.0080.01017.40
8.0.10.0030.00316.93
8.0.00.0110.00616.66
7.4.330.0000.00515.00
7.4.320.0030.00316.52
7.4.300.0030.00316.50
7.4.290.0030.00316.39
7.4.280.0070.00016.43
7.4.270.0040.00416.46
7.4.260.0000.00816.43
7.4.250.0060.00316.34
7.4.240.0000.00716.37
7.4.230.0000.00716.41
7.4.220.0060.01416.41
7.4.210.0100.00716.49
7.4.200.0050.00316.64
7.4.160.0090.00916.41
7.4.150.0120.00817.40
7.4.140.0050.01217.86
7.4.130.0060.01116.34
7.4.120.0050.01216.36
7.4.110.0040.01216.38
7.4.100.0070.01016.52
7.4.90.0110.00816.21
7.4.80.0030.01316.39
7.4.70.0170.00016.37
7.4.60.0070.01116.42
7.4.50.0030.00316.35
7.4.40.0150.00316.38
7.4.30.0130.00316.55
7.4.00.0040.00814.90
7.3.330.0000.00613.04
7.3.320.0030.00312.89
7.3.310.0030.00315.95
7.3.300.0030.00316.11
7.3.290.0160.00016.20
7.3.280.0060.01116.15
7.3.270.0090.00917.40
7.3.260.0110.01116.34
7.3.250.0100.00816.38
7.3.240.0100.01016.33
7.3.230.0030.01316.39
7.3.210.0000.01816.51
7.3.200.0160.00319.39
7.3.190.0170.00016.50
7.3.180.0130.01016.38
7.3.170.0090.01216.45
7.3.160.0030.01316.14
7.3.120.0030.01214.63
7.3.110.0040.00414.51
7.3.100.0030.00914.83
7.3.90.0070.00714.70
7.3.80.0040.01114.38
7.3.70.0110.00414.42
7.3.60.0090.00614.68
7.3.50.0110.00414.71
7.3.40.0000.01614.38
7.3.30.0080.00814.47
7.3.20.0000.01416.53
7.3.10.0030.00916.36
7.3.00.0030.01016.50
7.2.330.0090.00916.10
7.2.320.0150.00416.58
7.2.310.0030.01416.35
7.2.300.0130.00316.43
7.2.290.0090.00916.53
7.2.240.0090.00314.96
7.2.230.0060.00914.80
7.2.220.0060.00614.77
7.2.210.0040.01114.68
7.2.200.0030.01214.64
7.2.190.0090.00314.79
7.2.180.0070.00314.96
7.2.170.0060.00914.61
7.2.160.0000.01114.64
7.2.150.0030.01016.68
7.2.140.0070.01116.57
7.2.130.0060.00316.85
7.2.120.0100.00316.74
7.2.110.0090.00616.68
7.2.100.0030.01216.42
7.2.90.0090.00916.77
7.2.80.0080.00516.47
7.2.70.0100.00316.73
7.2.60.0040.01116.91
7.2.50.0090.00316.75
7.2.40.0040.00716.74
7.2.30.0090.00916.43
7.2.20.0090.00916.78
7.2.10.0030.00716.80
7.2.00.0060.00817.65
7.1.330.0030.00915.77
7.1.320.0030.01015.84
7.1.310.0040.00815.71
7.1.300.0080.00415.61
7.1.290.0030.00915.69
7.1.280.0070.00715.43
7.1.270.0070.00715.66
7.1.260.0080.00415.87
7.1.250.0030.01215.79
7.1.100.0030.01018.06
7.1.70.0000.01216.96
7.1.60.0130.01019.32
7.1.50.0180.00616.85
7.1.00.0030.07722.30
7.0.200.0030.00516.35
7.0.140.0000.07722.00
7.0.110.0100.06020.02
7.0.100.0570.06319.96
7.0.90.0030.04320.03
7.0.80.0070.05719.94
7.0.70.0000.05320.04
7.0.60.0170.06719.98
7.0.50.0000.04319.86
7.0.40.0030.04019.73
7.0.30.0100.03319.75
7.0.20.0070.03719.65
7.0.10.0030.06019.63
7.0.00.0030.03719.71
5.6.280.0030.07320.86
5.6.260.0100.07020.59
5.6.250.0000.07720.50
5.6.240.0100.04720.47
5.6.230.0070.08320.68
5.6.220.0130.07020.68
5.6.210.0100.06320.58
5.6.200.0130.06720.62
5.6.190.0030.04020.57
5.6.180.0000.04720.65
5.6.170.0000.08320.68
5.6.160.0030.08020.61
5.6.150.0100.04720.46
5.6.140.0170.07320.63
5.6.130.0100.07320.57
5.6.120.0030.08720.68
5.6.110.0030.07320.54
5.6.100.0130.03320.64
5.6.90.0100.05020.68
5.6.80.0170.07019.93
5.6.70.0070.06019.95
5.6.60.0000.04320.01
5.6.50.0070.03320.07
5.6.40.0070.07019.99
5.6.30.0030.08019.83
5.6.20.0100.04720.04
5.6.10.0030.07019.97
5.6.00.0070.07720.00
5.5.380.0100.05717.41
5.5.370.0070.04317.47
5.5.360.0000.04717.63
5.5.350.0030.05717.45
5.5.340.0000.04018.13
5.5.330.0030.04018.10
5.5.320.0070.07717.99
5.5.310.0070.07018.02
5.5.300.0100.07318.16
5.5.290.0070.06718.25
5.5.280.0030.08718.16
5.5.270.0000.08717.85
5.5.260.0130.07718.00
5.5.250.0000.08717.65
5.5.240.0070.03317.64
5.5.230.0070.03317.47
5.5.220.0000.06717.50
5.5.210.0030.07017.24
5.5.200.0070.03317.24
5.5.190.0130.04717.21
5.5.180.0130.07017.24
5.5.160.0130.07717.21
5.5.150.0100.06317.37
5.5.140.0070.07317.21
5.5.130.0100.05717.21
5.5.120.0000.08017.45
5.5.110.0100.06017.23
5.5.100.0130.08017.24
5.5.90.0070.07317.27
5.5.80.0170.05017.34
5.5.70.0070.06317.34
5.5.60.0070.05717.09
5.5.50.0170.05317.10
5.5.40.0030.03717.40
5.5.30.0030.04017.34
5.5.20.0000.04317.10
5.5.10.0070.06717.36
5.5.00.0000.04317.24
5.4.450.0030.04019.35
5.4.440.0070.06719.30
5.4.430.0100.05319.44
5.4.420.0000.04019.38
5.4.410.0170.06319.41
5.4.400.0030.05018.93
5.4.390.0030.07019.20
5.4.380.0070.08018.97
5.4.370.0100.07318.93
5.4.360.0030.07719.12
5.4.350.0030.08018.93
5.4.340.0130.04318.95
5.4.320.0100.08018.90
5.4.310.0100.07718.93
5.4.300.0100.04318.91
5.4.290.0130.05719.21
5.4.280.0000.04318.95
5.4.270.0100.07718.98
5.4.260.0000.05318.95
5.4.250.0070.06319.11
5.4.240.0030.04318.89
5.4.230.0070.04018.92
5.4.220.0070.07718.91
5.4.210.0030.07319.06
5.4.200.0000.04019.19
5.4.190.0070.03719.11
5.4.180.0070.04019.00
5.4.170.0070.06319.11
5.4.160.0070.04318.88
5.4.150.0130.08019.04
5.4.140.0200.05016.12
5.4.130.0130.05716.43
5.4.120.0070.06716.41
5.4.110.0000.04016.23
5.4.100.0100.04016.46
5.4.90.0100.05016.13
5.4.80.0030.05016.41
5.4.70.0100.06016.22
5.4.60.0030.07016.43
5.4.50.0070.04316.20
5.4.40.0070.07016.23
5.4.30.0100.06716.40
5.4.20.0070.06716.40
5.4.10.0100.05716.32
5.4.00.0070.06715.88
5.3.290.0100.07014.59
5.3.280.0100.08014.46
5.3.270.0030.04314.55
5.3.260.0000.08714.54
5.3.250.0230.05314.50
5.3.240.0070.04314.60
5.3.230.0170.03314.46
5.3.220.0070.03314.63
5.3.210.0070.05714.64
5.3.200.0070.06014.56
5.3.190.0100.07014.41
5.3.180.0070.07314.45
5.3.170.0030.07314.48
5.3.160.0070.06714.35
5.3.150.0100.06714.34
5.3.140.0100.06314.43
5.3.130.0030.07314.34
5.3.120.0100.07714.47
5.3.110.0130.06714.60
5.3.100.0030.06313.82
5.3.90.0070.06314.11
5.3.80.0030.05713.81
5.3.70.0000.04313.94
5.3.60.0030.08013.89
5.3.50.0070.03313.79
5.3.40.0100.03313.89
5.3.30.0030.07013.96
5.3.20.0000.06313.57
5.3.10.0030.05313.44
5.3.00.0000.05013.69
5.2.170.0030.06011.05
5.2.160.0070.03011.08
5.2.150.0000.06711.05
5.2.140.0070.03711.09
5.2.130.0000.03711.02
5.2.120.0030.05311.05
5.2.110.0030.05311.00
5.2.100.0070.03011.01
5.2.90.0070.04711.01
5.2.80.0100.05311.04
5.2.70.0030.04711.03
5.2.60.0000.03710.95
5.2.50.0070.06010.96
5.2.40.0000.06710.90
5.2.30.0030.03710.86
5.2.20.0000.06310.95
5.2.10.0030.04710.88
5.2.00.0100.04010.77
5.1.60.0030.03710.07
5.1.50.0030.0509.96
5.1.40.0030.02710.03
5.1.30.0030.05010.18
5.1.20.0100.02310.37
5.1.10.0070.03310.03
5.1.00.0030.04710.21
5.0.50.0030.0439.57
5.0.40.0000.0439.57
5.0.30.0070.0439.57
5.0.20.0030.0379.57
5.0.10.0000.0439.57
5.0.00.0070.0239.57
4.4.90.0000.0209.57
4.4.80.0030.0179.57
4.4.70.0030.0309.57
4.4.60.0000.0179.57
4.4.50.0070.0239.57
4.4.40.0000.0279.57
4.4.30.0070.0309.57
4.4.20.0070.0309.57
4.4.10.0070.0239.57
4.4.00.0000.0279.57
4.3.110.0000.0179.57
4.3.100.0030.0139.57
4.3.90.0030.0209.57
4.3.80.0030.0209.57
4.3.70.0030.0309.57
4.3.60.0000.0179.57
4.3.50.0070.0239.57
4.3.40.0030.0509.57
4.3.30.0000.0139.57
4.3.20.0000.0279.57
4.3.10.0000.0139.57
4.3.00.0030.0309.57

preferences:
46.03 ms | 401 KiB | 5 Q