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', 'key3' => 'test', 'compare3' => '=', 'type3' => 'NUMERIC', 'key4' => 'test', 'value4' => 'test', 'key5' => 'test', 'value5' => 'test', 'compare5' => '=', 'type5' => 'NUMERIC', ); $new = array_splice($arr, 0,1); foreach($arr as $k => $v){ preg_match("/(.*?)(\d+)/", $k, $m); $new[$m[2]-1][$m[1]] = $v; } 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.00718.68
8.3.50.0180.00218.58
8.3.40.0060.00918.88
8.3.30.0090.00618.79
8.3.20.0070.00020.88
8.3.10.0000.00723.48
8.3.00.0040.00421.96
8.2.180.0040.01417.00
8.2.170.0120.00322.96
8.2.160.0040.01122.15
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0090.00017.92
8.2.120.0000.00826.35
8.2.110.0040.00721.12
8.2.100.0080.00418.09
8.2.90.0060.00318.16
8.2.80.0060.00318.00
8.2.70.0000.00817.91
8.2.60.0030.00618.16
8.2.50.0060.00318.10
8.2.40.0040.00419.30
8.2.30.0000.00720.52
8.2.20.0070.00018.20
8.2.10.0000.00819.39
8.2.00.0040.00418.13
8.1.280.0100.01025.92
8.1.270.0000.00722.05
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0120.00020.64
8.1.230.0080.00420.92
8.1.220.0050.00317.77
8.1.210.0000.00818.90
8.1.200.0030.00617.48
8.1.190.0060.00317.36
8.1.180.0000.00818.10
8.1.170.0060.00318.63
8.1.160.0040.00418.87
8.1.150.0030.00618.91
8.1.140.0040.00418.91
8.1.130.0000.00718.92
8.1.120.0040.00717.65
8.1.110.0050.00317.55
8.1.100.0070.00017.52
8.1.90.0000.00817.61
8.1.80.0000.00917.52
8.1.70.0070.00017.55
8.1.60.0040.00417.74
8.1.50.0080.00017.70
8.1.40.0030.00517.62
8.1.30.0000.00817.78
8.1.20.0040.00417.83
8.1.10.0050.00317.62
8.1.00.0040.00417.50
8.0.300.0040.00420.06
8.0.290.0040.00416.88
8.0.280.0040.00418.36
8.0.270.0000.00717.21
8.0.260.0000.00818.43
8.0.250.0080.00017.14
8.0.240.0080.00017.12
8.0.230.0000.00717.05
8.0.220.0040.00417.12
8.0.210.0040.00317.11
8.0.200.0080.00017.11
8.0.190.0080.00017.05
8.0.180.0040.00417.11
8.0.170.0080.00017.15
8.0.160.0030.00317.12
8.0.150.0070.00017.00
8.0.140.0050.00216.96
8.0.130.0000.00613.52
8.0.120.0080.00016.96
8.0.110.0040.00417.15
8.0.100.0040.00417.09
8.0.90.0000.00717.09
8.0.80.0090.00617.14
8.0.70.0040.00417.09
8.0.60.0050.00317.13
8.0.50.0030.00517.06
8.0.30.0110.01117.14
8.0.20.0120.00917.39
8.0.10.0000.00717.18
8.0.00.0090.01117.08
7.4.330.0030.00316.62
7.4.320.0030.00316.63
7.4.300.0070.00016.68
7.4.290.0030.00316.55
7.4.280.0040.00416.60
7.4.270.0030.00316.66
7.4.260.0040.00416.71
7.4.250.0030.00316.67
7.4.240.0000.00716.70
7.4.230.0050.00316.63
7.4.220.0000.00816.81
7.4.210.0060.01116.74
7.4.200.0040.00316.46
7.4.160.0050.01416.70
7.4.140.0190.00717.86
7.4.130.0070.01116.73
7.4.120.0090.00916.73
7.4.110.0040.01516.52
7.4.100.0130.00516.78
7.4.90.0080.00916.94
7.4.80.0100.01319.39
7.4.70.0130.00316.77
7.4.60.0100.01016.82
7.4.50.0000.01816.86
7.4.40.0100.00716.82
7.4.00.0030.01014.89
7.3.330.0000.00513.26
7.3.320.0030.00313.22
7.3.310.0000.00716.47
7.3.300.0000.00716.36
7.3.290.0000.00716.52
7.3.280.0060.01016.45
7.3.260.0110.00716.63
7.3.240.0110.00716.68
7.3.230.0030.01416.45
7.3.210.0140.00316.39
7.3.200.0100.00616.52
7.3.190.0060.00916.88
7.3.180.0060.01216.55
7.3.170.0090.00816.48
7.3.160.0070.01116.66
7.3.40.0040.00814.90
7.3.30.0080.00415.03
7.3.20.0120.00315.08
7.3.10.0170.01015.05
7.3.00.0080.00814.93
7.2.330.0150.00416.79
7.2.320.0140.00616.92
7.2.310.0140.00316.88
7.2.300.0140.00916.89
7.2.290.0120.00916.77
7.2.170.0090.01515.24
7.2.160.0030.00715.15
7.2.150.0030.01315.51
7.2.140.0200.01015.19
7.2.130.0070.01015.36
7.2.120.0260.01016.87
7.2.110.0160.00617.27
7.2.100.0160.00617.14
7.2.90.0120.00317.14
7.2.80.0210.00017.28
7.2.70.0170.00317.08
7.2.60.0070.00417.23
7.2.50.0130.01017.11
7.2.40.0030.01217.00
7.2.30.0070.01717.02
7.2.20.0100.00317.04
7.2.10.0050.00916.99
7.2.00.0090.01217.06
7.1.280.0100.01014.11
7.1.270.0240.00313.88
7.1.260.0230.00314.16
7.1.250.0110.00414.32

preferences:
57.37 ms | 401 KiB | 5 Q