3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( 0=>array( "id"=>"73", "position"=>"1" ), 1=>array( "id"=>"58", "position"=>"2" ), 2=>array( "id"=>"82", "position"=>"3" ), 3=>array( "id"=>"84", "position"=>"4" ) ); $array = array_combine(range(1, count($array)), $array); print_r($array);

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.5.10.0100.00716.34
8.5.00.0120.01019.95
8.4.160.0080.01619.67
8.4.150.0020.00014.05
8.4.140.0150.00617.61
8.4.130.0120.00817.36
8.4.120.0040.00420.74
8.4.110.0160.00518.64
8.4.100.0140.00617.71
8.4.90.0110.00917.52
8.4.80.0110.00517.43
8.4.70.0120.00517.53
8.4.60.0110.01018.96
8.4.50.0220.00718.10
8.4.40.0220.01018.25
8.4.30.0200.00818.88
8.4.20.0250.00818.01
8.4.10.0220.00618.28
8.3.280.0090.01118.41
8.3.270.0110.00816.62
8.3.260.0100.00916.53
8.3.250.0130.00618.93
8.3.240.0110.00720.96
8.3.230.0130.00616.42
8.3.220.0040.00519.08
8.3.210.0080.01216.48
8.3.200.0190.00716.48
8.3.190.0190.00816.70
8.3.180.0190.00816.36
8.3.170.0280.00516.77
8.3.160.0250.00717.32
8.3.150.0220.00417.75
8.3.140.0120.00816.84
8.3.130.0240.00617.47
8.3.120.0180.00817.89
8.3.110.0250.00616.42
8.3.100.0300.00818.83
8.3.90.0270.00819.81
8.3.80.0310.00617.34
8.3.70.0290.00816.92
8.3.60.0270.00716.36
8.3.50.0220.00617.26
8.3.40.0210.00417.49
8.3.30.0210.00517.74
8.3.20.0130.00218.77
8.3.10.0200.00617.89
8.3.00.0170.00518.67
8.2.290.0100.00820.18
8.2.280.0200.00917.50
8.2.270.0210.00716.60
8.2.260.0150.00816.31
8.2.250.0190.00616.80
8.2.240.0230.00616.61
8.2.230.0200.00917.88
8.2.220.0230.00623.40
8.2.210.0240.00819.86
8.2.200.0260.00717.11
8.2.190.0230.00917.11
8.2.180.0310.00619.52
8.2.170.0300.00619.39
8.2.160.0220.01019.02
8.2.150.0220.00820.13
8.2.140.0240.00619.78
8.2.130.0240.00420.36
8.2.120.0180.01118.65
8.2.110.0230.00918.34
8.2.100.0220.00917.46
8.2.90.0210.00817.46
8.2.80.0280.00617.82
8.2.70.0240.00817.38
8.2.60.0250.00817.43
8.2.50.0200.00817.59
8.2.40.0180.01017.59
8.2.30.0220.00617.51
8.2.20.0170.01017.57
8.2.10.0230.00417.92
8.2.00.0170.01017.77
8.1.330.0100.00816.52
8.1.320.0160.00816.23
8.1.310.0190.00717.32
8.1.300.0230.00517.34
8.1.290.0160.01221.07
8.1.280.0190.01319.26
8.1.270.0230.00518.40
8.1.260.0170.00720.32
8.1.250.0210.00920.76
8.1.240.0210.00717.79
8.1.230.0230.00817.39
8.1.220.0220.00517.34
8.1.210.0200.00817.75
8.1.200.0230.00717.07
8.1.190.0180.00817.07
8.1.180.0210.00617.36
8.1.170.0200.00817.63
8.1.160.0180.00717.78
8.1.150.0190.00417.76
8.1.140.0120.00818.22
8.1.130.0190.00618.64
8.1.120.0140.00617.33
8.1.110.0230.00217.10
8.1.100.0150.00917.25
8.1.90.0130.00517.40
8.1.80.0150.00317.34
8.1.70.0160.00517.32
8.1.60.0130.00517.48
8.1.50.0140.00717.38
8.1.40.0130.00717.38
8.1.30.0170.00617.54
8.1.20.0140.00717.59
8.1.10.0170.00517.28
8.1.00.0160.00617.21
8.0.300.0230.00617.16
8.0.290.0210.00616.45
8.0.280.0220.00417.01
8.0.270.0190.00816.44
8.0.260.0190.00817.10
8.0.250.0210.00416.49
8.0.240.0210.00516.62
8.0.230.0210.00716.66
8.0.220.0160.00516.67
8.0.210.0160.00416.64
8.0.200.0110.00916.66
8.0.190.0130.00716.71
8.0.180.0140.00716.68
8.0.170.0150.00616.75
8.0.160.0140.00616.79
8.0.150.0120.00616.69
8.0.140.0140.00616.67
8.0.130.0140.00716.25
8.0.120.0140.00716.70
8.0.110.0160.00616.68
8.0.100.0170.00416.65
8.0.90.0160.00616.75
8.0.80.0160.00916.67
8.0.70.0120.00616.67
8.0.60.0150.00416.70
8.0.50.0130.00516.65
8.0.30.0120.00716.68
8.0.20.0130.00816.77
8.0.10.0130.00616.80
8.0.00.0110.00716.78
7.4.330.0160.00415.98
7.4.320.0180.00616.13
7.4.300.0080.00616.33
7.4.290.0110.00616.36
7.4.280.0140.00516.39
7.4.270.0160.00316.38
7.4.260.0160.00416.44
7.4.250.0140.00616.40
7.4.240.0130.00516.42
7.4.230.0120.00416.42
7.4.220.0110.00516.46
7.4.210.0110.00516.42
7.4.200.0130.00316.39
7.4.190.0160.00516.44
7.4.180.0130.00416.41
7.4.160.0130.00716.38
7.4.150.0120.00616.41
7.4.140.0160.00516.28
7.4.130.0130.00616.32
7.4.120.0130.00516.26
7.4.110.0100.00616.30
7.4.100.0140.00316.40
7.4.90.0150.00616.36
7.4.80.0170.00516.73
7.4.70.0150.00616.17
7.4.60.0120.00816.25
7.4.50.0140.00616.22
7.4.40.0180.00516.25
7.4.30.0160.00416.29
7.4.20.0130.00616.19
7.4.10.0140.00616.25
7.4.00.0140.00516.10
7.3.330.0150.00415.70
7.3.320.0140.00615.67
7.3.310.0130.00516.18
7.3.300.0140.00616.07
7.3.290.0150.00516.10
7.3.280.0130.00716.09
7.3.270.0110.00916.15
7.3.260.0130.00716.19
7.3.250.0170.00516.19
7.3.240.0140.00616.12
7.3.230.0140.00716.13
7.3.220.0150.00715.99
7.3.210.0170.00516.06
7.3.200.0150.00616.12
7.3.190.0130.00616.03
7.3.180.0150.00616.13
7.3.170.0160.00416.13
7.3.160.0160.00416.14
7.3.150.0150.00616.03
7.3.140.0140.00615.95
7.3.130.0170.00416.07
7.3.120.0150.00515.80
7.3.110.0140.00715.81
7.3.100.0130.00515.80
7.3.90.0150.00515.98
7.3.80.0140.00615.86
7.3.70.0140.00516.01
7.3.60.0150.00315.93
7.3.50.0140.00515.76
7.3.40.0140.00615.82
7.3.30.0140.00715.83
7.3.20.0170.00516.72
7.3.10.0160.00316.75
7.3.00.0150.00516.76
7.2.340.0200.00416.20
7.2.330.0160.00516.22
7.2.320.0140.00516.23
7.2.310.0150.00616.24
7.2.300.0150.00616.30
7.2.290.0170.00516.23
7.2.280.0170.00316.19
7.2.270.0170.00516.25
7.2.260.0190.00416.28
7.2.250.0190.00516.24
7.2.240.0160.00715.94
7.2.230.0160.00615.98
7.2.220.0150.00616.01
7.2.210.0170.00515.94
7.2.200.0150.00516.11
7.2.190.0130.00616.13
7.2.180.0150.00715.95
7.2.170.0150.00615.97
7.2.160.0130.00716.04
7.2.150.0180.00616.84
7.2.140.0140.00816.89
7.2.130.0140.00716.97
7.2.120.0130.00616.97
7.2.110.0130.00716.97
7.2.100.0150.00517.02
7.2.90.0160.00516.96
7.2.80.0130.00716.91
7.2.70.0140.00817.03
7.2.60.0160.00716.94
7.2.50.0150.00716.94
7.2.40.0190.00617.03
7.2.30.0110.00916.94
7.2.20.0150.00517.01
7.2.10.0130.00717.02
7.2.00.0130.00716.94
7.1.330.0120.00615.89
7.1.320.0170.00316.00
7.1.310.0150.00415.92
7.1.300.0150.00616.02
7.1.290.0160.00415.97
7.1.280.0170.00415.89
7.1.270.0120.00615.86
7.1.260.0140.00415.87
7.1.250.0120.00715.89
7.1.240.0170.00415.94
7.1.230.0160.00516.03
7.1.220.0180.00315.94
7.1.210.0170.00515.95
7.1.200.0190.00215.94
7.1.190.0170.00515.97
7.1.180.0180.00415.84
7.1.170.0150.00615.97
7.1.160.0210.00716.19
7.1.150.0180.00416.18
7.1.140.0180.00616.19
7.1.130.0200.00416.16
7.1.120.0200.00516.15
7.1.110.0160.00516.20
7.1.100.0160.00616.13
7.1.90.0170.00516.16
7.1.80.0180.00516.18
7.1.70.0170.00515.99
7.1.60.0190.00516.19
7.1.50.0150.00716.16
7.1.40.0150.00716.29
7.1.30.0150.00716.23
7.1.20.0180.00516.16
7.1.10.0180.00416.19
7.1.00.0170.00516.09

preferences:
120.31 ms | 403 KiB | 5 Q