3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array ( 'rows' => array ( 0 => array ( 'position' => 1, 'image_id' => 2809, 'basename' => 'rj5ed2c90f609423.26673093.jpg' ), 1 => array ( 'position' => 1, 'image_id' => 2808, 'basename' => 'rj5ed2c8eccc9c06.91700011.jpg' ), 2 => array ( 'position' => 2, 'image_id' => 2807, 'basename' => 'rj5ed2c77ef32b76.96579137.jpg' ) ) ); $data['rows'] = array_reduce($data['rows'], function ($c, $a) { $c[$a['position']][] = $a; return $c; }, array()); print_r($data);

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.4.120.0090.01024.22
8.4.110.0130.00822.25
8.4.100.0110.00920.57
8.4.90.0110.00918.61
8.4.80.0070.00118.95
8.4.70.0060.00218.22
8.4.60.0110.00918.96
8.4.50.0040.00417.82
8.4.40.0090.00919.60
8.4.30.0160.00322.15
8.4.20.0060.00317.95
8.4.10.0040.00419.54
8.3.250.0110.00819.08
8.3.240.0120.00716.74
8.3.230.0100.00916.48
8.3.220.0130.00518.88
8.3.210.0080.00718.41
8.3.200.0060.00316.57
8.3.190.0040.00417.45
8.3.180.0050.00516.51
8.3.170.0110.00719.08
8.3.160.0060.00916.76
8.3.150.0110.00720.88
8.3.140.0070.00318.43
8.3.130.0040.00418.59
8.3.120.0000.01019.23
8.3.110.0060.00320.94
8.3.100.0060.00316.59
8.3.90.0080.00026.77
8.3.80.0060.00316.75
8.3.70.0060.00916.58
8.3.60.0100.01018.18
8.3.50.0140.00723.73
8.3.40.0080.00818.75
8.3.30.0000.01418.67
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.290.0090.01020.42
8.2.280.0100.00118.82
8.2.270.0110.00717.29
8.2.260.0040.00418.36
8.2.250.0040.00418.50
8.2.240.0000.01116.85
8.2.230.0000.01122.58
8.2.220.0090.00024.06
8.2.210.0100.01026.77
8.2.200.0060.00318.16
8.2.190.0070.00716.58
8.2.180.0130.00325.92
8.2.170.0100.00319.10
8.2.160.0140.00322.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00426.35
8.2.110.0100.00020.89
8.2.100.0090.00319.70
8.2.90.0060.00318.34
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0000.00917.63
8.2.50.0050.00318.05
8.2.40.0000.00819.88
8.2.30.0060.00318.02
8.2.20.0000.00718.14
8.2.10.0000.00719.25
8.2.00.0080.00019.30
8.1.330.0120.00521.98
8.1.320.0130.00615.96
8.1.310.0090.00018.45
8.1.300.0130.00616.26
8.1.290.0030.00630.84
8.1.280.0110.00425.92
8.1.270.0080.00023.99
8.1.260.0060.00328.09
8.1.250.0040.00428.09
8.1.240.0060.00322.68
8.1.230.0080.00322.62
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0070.00317.35
8.1.190.0040.00417.22
8.1.180.0030.00518.10
8.1.170.0030.00618.64
8.1.160.0030.00518.93
8.1.150.0000.00718.95
8.1.140.0000.00718.86
8.1.130.0030.00320.07
8.1.120.0050.00317.31
8.1.110.0000.00917.43
8.1.100.0050.00317.44
8.1.90.0000.00717.52
8.1.80.0000.00817.53
8.1.70.0000.00717.50
8.1.60.0030.00617.63
8.1.50.0030.00617.43
8.1.40.0000.00817.53
8.1.30.0030.00617.73
8.1.20.0040.00417.55
8.1.10.0000.00817.50
8.1.00.0030.00517.49
8.0.300.0060.00321.51
8.0.290.0050.00316.63
8.0.280.0040.00418.26
8.0.270.0030.00317.95
8.0.260.0030.00318.57
8.0.250.0000.00716.91
8.0.240.0030.00316.77
8.0.230.0040.00416.87
8.0.220.0000.00716.87
8.0.210.0030.00316.77
8.0.200.0040.00416.91
8.0.190.0040.00417.00
8.0.180.0000.00716.89
8.0.170.0030.00616.79
8.0.160.0040.00416.89
8.0.150.0030.00616.81
8.0.140.0040.00316.86
8.0.130.0000.00513.30
8.0.120.0000.00816.91
8.0.110.0050.00216.69
8.0.100.0000.00716.98
8.0.90.0070.00016.69
8.0.80.0120.00516.88
8.0.70.0080.00016.87
8.0.60.0050.00316.70
8.0.50.0000.00816.88
8.0.30.0070.01016.86
8.0.20.0120.00616.85
8.0.10.0000.00717.00
8.0.00.0050.01416.57
7.4.330.0050.00015.55
7.4.320.0000.00616.63
7.4.300.0000.00616.62
7.4.290.0000.00716.41
7.4.280.0000.00816.61
7.4.270.0000.00716.63
7.4.260.0030.00213.28
7.4.250.0040.00416.59
7.4.240.0070.00016.58
7.4.230.0030.00316.34
7.4.220.0050.00216.50
7.4.210.0070.00716.55
7.4.200.0000.00716.41
7.4.130.0150.00416.34
7.4.120.0100.01016.43
7.4.110.0030.01616.47
7.4.100.0100.01016.50
7.4.90.0160.00616.63
7.4.80.0150.00616.33
7.4.70.0100.01316.39
7.4.60.0100.00716.47
7.4.50.0070.01116.57
7.4.40.0100.01116.59
7.4.30.0090.00916.72
7.4.20.0150.00316.33
7.4.10.0150.00316.49
7.4.00.0070.01116.47
7.3.330.0000.00816.29
7.3.320.0000.00513.19
7.3.310.0050.00216.25
7.3.300.0080.00016.35
7.3.290.0080.00816.32
7.3.260.0180.00416.37
7.3.250.0100.01316.53
7.3.240.0100.00716.62
7.3.230.0140.00316.46
7.3.220.0100.01316.40
7.3.210.0100.00716.50
7.3.200.0070.01416.48
7.3.190.0110.01116.22
7.3.180.0160.00916.41
7.3.170.0030.01916.48
7.3.160.0150.00316.63
7.3.150.0100.00716.63
7.3.140.0060.01616.41
7.3.130.0070.01116.34
7.3.120.0110.00716.27
7.3.110.0220.00016.51
7.3.100.0140.00616.38
7.3.90.0060.01616.37
7.3.80.0120.00616.32
7.3.70.0110.00716.39
7.3.60.0030.01516.49
7.3.50.0150.00416.31
7.3.40.0030.01816.44
7.3.30.0140.00416.46
7.3.20.0120.00616.39
7.3.10.0110.01116.59
7.3.00.0120.00616.30

preferences:
32.46 ms | 403 KiB | 5 Q