3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array ( 'relation' => 'AND', 'key1' => 'Demo', 'value1' => 'demo', 'compare1' => '=', 'type1' => 'NUMERIC', 'key2' => 'test', 'value2' => 'test', 'compare2' => '=', 'type2' => 'NUMERIC', ); $new = array_merge(array_splice($arr, 0,1), array_chunk($arr, 4, true)); foreach($new as &$a){ if(is_array($a)) $a = array_combine(["key", "value", "compare", "type"],$a); } var_export($new);

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.70.0070.01416.50
8.3.60.0140.00418.55
8.3.50.0100.00720.20
8.3.40.0150.00318.59
8.3.30.0040.01118.77
8.3.20.0040.00420.78
8.3.10.0000.00721.88
8.3.00.0040.00421.77
8.2.190.0140.00316.58
8.2.180.0150.00716.32
8.2.170.0140.00022.96
8.2.160.0080.00821.07
8.2.150.0080.00025.66
8.2.140.0070.00024.66
8.2.130.0090.00019.72
8.2.120.0080.00026.35
8.2.110.0100.00020.97
8.2.100.0060.00617.91
8.2.90.0040.00417.72
8.2.80.0080.00017.97
8.2.70.0040.00418.04
8.2.60.0070.00318.03
8.2.50.0000.00818.10
8.2.40.0030.00519.33
8.2.30.0080.00020.54
8.2.20.0000.00718.06
8.2.10.0000.00819.40
8.2.00.0040.00418.11
8.1.280.0090.00625.92
8.1.270.0040.00422.05
8.1.260.0080.00026.35
8.1.250.0080.00628.09
8.1.240.0070.01022.47
8.1.230.0120.00322.75
8.1.220.0080.00017.79
8.1.210.0050.00318.77
8.1.200.0040.00417.48
8.1.190.0050.00317.23
8.1.180.0040.00418.10
8.1.170.0050.00318.53
8.1.160.0000.00718.81
8.1.150.0080.00018.76
8.1.140.0030.00519.00
8.1.130.0070.00020.22
8.1.120.0000.00817.48
8.1.110.0000.00817.48
8.1.100.0070.00017.45
8.1.90.0040.00417.46
8.1.80.0020.00517.45
8.1.70.0030.00317.44
8.1.60.0040.00417.49
8.1.50.0050.00317.54
8.1.40.0060.00317.45
8.1.30.0030.00517.64
8.1.20.0040.00417.62
8.1.10.0080.00017.41
8.1.00.0030.01017.48
8.0.300.0040.00419.60
8.0.290.0030.00616.75
8.0.280.0030.00318.43
8.0.270.0070.00017.25
8.0.260.0000.00718.35
8.0.250.0050.00317.03
8.0.240.0050.00316.88
8.0.230.0000.00716.83
8.0.220.0000.00716.87
8.0.210.0030.00516.77
8.0.200.0000.00616.98
8.0.190.0000.00716.83
8.0.180.0040.00416.94
8.0.170.0030.00516.79
8.0.160.0020.00516.88
8.0.150.0040.00416.84
8.0.140.0000.00816.90
8.0.130.0060.00013.30
8.0.120.0030.00516.79
8.0.110.0000.00716.92
8.0.100.0040.00416.79
8.0.90.0040.00316.95
8.0.80.0060.00916.86
8.0.70.0070.00016.75
8.0.60.0000.00716.91
8.0.50.0040.00416.75
8.0.30.0060.01216.82
8.0.20.0170.00316.97
8.0.10.0040.00417.10
8.0.00.0140.00716.76
7.4.330.0000.00416.77
7.4.320.0000.00616.60
7.4.300.0040.00416.55
7.4.290.0040.00416.58
7.4.280.0000.00716.58
7.4.270.0050.00216.50
7.4.260.0040.00416.59
7.4.250.0000.00716.50
7.4.240.0030.00316.60
7.4.230.0080.00016.61
7.4.220.0000.00816.50
7.4.210.0070.01116.51
7.4.200.0040.00416.53
7.4.160.0110.00516.47
7.4.140.0030.01617.86
7.4.130.0060.01116.54
7.4.120.0060.01316.30
7.4.110.0100.00616.57
7.4.100.0080.00816.35
7.4.90.0100.00716.37
7.4.80.0070.01619.39
7.4.70.0060.00916.54
7.4.60.0060.01016.62
7.4.50.0100.00316.36
7.4.40.0070.01016.39
7.4.00.0070.01115.03
7.3.330.0000.00513.14
7.3.320.0000.00613.01
7.3.310.0030.00316.10
7.3.300.0000.00716.09
7.3.290.0000.00816.15
7.3.280.0070.00916.26
7.3.260.0090.00816.50
7.3.240.0080.01116.50
7.3.230.0140.00716.57
7.3.210.0100.00716.26
7.3.200.0040.01216.34
7.3.190.0060.01016.48
7.3.180.0070.01016.34
7.3.170.0180.00016.30
7.3.160.0110.00616.36
7.3.40.0070.00714.88
7.3.30.0070.00714.70
7.3.20.0120.00616.61
7.3.10.0090.00616.81
7.3.00.0080.00516.37
7.2.330.0070.01116.43
7.2.320.0090.00916.46
7.2.310.0060.01016.64
7.2.300.0120.01216.76
7.2.290.0170.00416.55
7.2.170.0070.01515.08
7.2.160.0100.00414.71
7.2.150.0100.01016.82
7.2.140.0030.00716.93
7.2.130.0000.01216.71
7.2.120.0000.01016.70
7.2.110.0100.00017.05
7.2.100.0090.01216.84
7.2.90.0120.00916.86
7.2.80.0000.01716.99
7.2.70.0120.00916.88
7.2.60.0090.00617.05
7.2.50.0100.00716.97
7.2.40.0030.01016.82
7.2.30.0090.01216.97
7.2.20.0090.00916.86
7.2.10.0030.01016.99
7.2.00.0060.00617.01
7.1.280.0070.00415.59
7.1.270.0030.01015.77
7.1.260.0100.00015.70
7.1.250.0070.00415.74

preferences:
13.79 ms | 401 KiB | 5 Q