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)); 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.60.0070.01418.43
8.3.50.0090.00819.04
8.3.40.0120.00618.62
8.3.30.0110.00318.54
8.3.20.0000.00820.86
8.3.10.0080.00021.46
8.3.00.0000.00821.72
8.2.180.0130.00716.75
8.2.170.0150.01218.90
8.2.160.0140.00022.96
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0100.00317.91
8.2.120.0050.00326.35
8.2.110.0030.00621.04
8.2.100.0060.00617.66
8.2.90.0040.00420.60
8.2.80.0060.00317.97
8.2.70.0040.00417.80
8.2.60.0000.00818.03
8.2.50.0110.00018.10
8.2.40.0030.00619.20
8.2.30.0070.00020.82
8.2.20.0070.00018.05
8.2.10.0040.00419.39
8.2.00.0040.00417.95
8.1.280.0120.00325.92
8.1.270.0040.00422.14
8.1.260.0070.00026.35
8.1.250.0140.00028.09
8.1.240.0060.00317.70
8.1.230.0040.00820.96
8.1.220.0040.00417.74
8.1.210.0040.00420.87
8.1.200.0040.00417.23
8.1.190.0080.00017.23
8.1.180.0050.00318.10
8.1.170.0040.00418.50
8.1.160.0000.00718.80
8.1.150.0000.00718.46
8.1.140.0030.00318.93
8.1.130.0060.00320.31
8.1.120.0030.00417.39
8.1.110.0040.00417.45
8.1.100.0040.00317.31
8.1.90.0040.00417.42
8.1.80.0030.00617.38
8.1.70.0070.00017.43
8.1.60.0030.00517.41
8.1.50.0030.00617.36
8.1.40.0050.00317.49
8.1.30.0000.00817.62
8.1.20.0040.00417.61
8.1.10.0020.00517.54
8.1.00.0020.01017.45
8.0.300.0040.00419.77
8.0.290.0040.00416.63
8.0.280.0000.00718.30
8.0.270.0000.00717.20
8.0.260.0030.00518.37
8.0.250.0030.00316.90
8.0.240.0070.00016.86
8.0.230.0000.00716.88
8.0.220.0040.00416.79
8.0.210.0040.00416.77
8.0.200.0020.00516.89
8.0.190.0000.00816.89
8.0.180.0040.00416.83
8.0.170.0080.00016.80
8.0.160.0040.00416.88
8.0.150.0000.00716.80
8.0.140.0000.00716.79
8.0.130.0030.00313.33
8.0.120.0030.00616.82
8.0.110.0000.00716.73
8.0.100.0030.00516.82
8.0.90.0000.00716.72
8.0.80.0120.00316.80
8.0.70.0020.00516.87
8.0.60.0000.00816.71
8.0.50.0040.00416.71
8.0.30.0130.01216.79
8.0.20.0130.00617.00
8.0.10.0040.00416.95
8.0.00.0130.00716.64
7.4.330.0000.00616.73
7.4.320.0060.00016.52
7.4.300.0000.00616.46
7.4.290.0000.00716.46
7.4.280.0080.00016.54
7.4.270.0030.00316.51
7.4.260.0000.00716.45
7.4.250.0000.00716.50
7.4.240.0000.00716.54
7.4.230.0030.00316.64
7.4.220.0030.00316.54
7.4.210.0050.00916.50
7.4.200.0000.00716.33
7.4.160.0080.01016.41
7.4.140.0090.00917.86
7.4.130.0100.00616.41
7.4.120.0120.00616.43
7.4.110.0100.00616.39
7.4.100.0100.01316.40
7.4.90.0000.01716.41
7.4.80.0150.00919.39
7.4.70.0090.01216.41
7.4.60.0130.00316.32
7.4.50.0030.00916.36
7.4.40.0040.01316.34
7.4.00.0060.00914.83
7.3.330.0000.00513.12
7.3.320.0000.00612.94
7.3.310.0040.00415.94
7.3.300.0000.00716.18
7.3.290.0000.00716.23
7.3.280.0120.00516.10
7.3.260.0120.00516.23
7.3.240.0120.00716.28
7.3.230.0110.00616.20
7.3.210.0000.01716.23
7.3.200.0100.00616.11
7.3.190.0090.00916.52
7.3.180.0130.01016.38
7.3.170.0040.01416.33
7.3.160.0120.00916.32
7.3.40.0050.00514.75
7.3.30.0090.00314.50
7.3.20.0110.00016.54
7.3.10.0070.00416.45
7.3.00.0070.00716.47
7.2.330.0060.01216.66
7.2.320.0090.01216.68
7.2.310.0030.01316.20
7.2.300.0130.00316.30
7.2.290.0130.00416.54
7.2.170.0130.00914.93
7.2.160.0060.01614.57
7.2.150.0040.01116.72
7.2.140.0080.00416.88
7.2.130.0130.00916.78
7.2.120.0030.01016.63
7.2.110.0060.00616.85
7.2.100.0000.01316.44
7.2.90.0030.01016.86
7.2.80.0080.00616.84
7.2.70.0180.00016.79
7.2.60.0040.00716.63
7.2.50.0080.00316.89
7.2.40.0070.01416.88
7.2.30.0220.00316.89
7.2.20.0130.00416.52
7.2.10.0030.01016.76
7.2.00.0040.00716.90
7.1.280.0090.00915.77
7.1.270.0080.00415.91
7.1.260.0000.01415.51
7.1.250.0070.01015.89

preferences:
47.89 ms | 401 KiB | 5 Q