3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = <<<JSON { "status": "OK", "page": { "rows": 5000, "more": 0, "number": 1 }, "accounts": [ { "connected": 0, "settings": { "link_first_study_only": "0", "update_study_source_on_notify": "1", "link_external_whitelist": "", "other_ingress_tags": "" }, "must_approve_upload": 0, "css": null, "share_via_gateway": 0, "password_expire": 90, "vanity": "medpics" } ] } JSON; $json = json_decode($json, true); function ksort_recursive(&$array) { ksort($array); foreach ($array as &$value) { if (is_array($value)) { ksort_recursive($value); } } } ksort_recursive($json); print_r($json);

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.0120.00318.30
8.3.50.0090.01022.80
8.3.40.0150.00018.61
8.3.30.0140.00018.69
8.3.20.0050.00220.20
8.3.10.0040.00421.89
8.3.00.0080.00019.73
8.2.180.0150.00718.41
8.2.170.0130.00322.96
8.2.160.0070.00719.40
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00422.11
8.2.120.0080.00026.35
8.2.110.0070.00322.04
8.2.100.0120.00017.85
8.2.90.0040.00418.22
8.2.80.0040.00420.36
8.2.70.0050.00317.63
8.2.60.0000.00817.63
8.2.50.0030.00618.10
8.2.40.0070.00020.42
8.2.30.0040.00421.02
8.2.20.0040.00417.71
8.2.10.0040.00418.11
8.2.00.0040.00418.07
8.1.280.0040.01125.92
8.1.270.0040.00423.99
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0060.00323.97
8.1.230.0110.00021.04
8.1.220.0090.00017.76
8.1.210.0050.00318.77
8.1.200.0090.00017.48
8.1.190.0050.00317.22
8.1.180.0000.00818.10
8.1.170.0000.00818.64
8.1.160.0040.00422.13
8.1.150.0070.00020.70
8.1.140.0050.00319.50
8.1.130.0030.00617.50
8.1.120.0030.00317.45
8.1.110.0000.00817.37
8.1.100.0070.00017.42
8.1.90.0030.00917.45
8.1.80.0050.00317.44
8.1.70.0040.00417.52
8.1.60.0040.00417.59
8.1.50.0040.00417.52
8.1.40.0030.00717.49
8.1.30.0030.00517.62
8.1.20.0000.00917.66
8.1.10.0020.00517.53
8.1.00.0000.00717.46
8.0.300.0070.00020.05
8.0.290.0040.00416.75
8.0.280.0000.00718.44
8.0.270.0000.00717.25
8.0.260.0000.00716.89
8.0.250.0000.00717.05
8.0.240.0030.00317.06
8.0.230.0000.00617.00
8.0.220.0040.00416.99
8.0.210.0030.00316.85
8.0.200.0000.00717.03
8.0.190.0000.00716.92
8.0.180.0070.00016.89
8.0.170.0040.00416.93
8.0.160.0000.00716.87
8.0.150.0070.00016.90
8.0.140.0070.00316.85
8.0.130.0000.00513.34
8.0.120.0000.00816.90
8.0.110.0000.00716.85
8.0.100.0040.00416.92
8.0.90.0040.00416.77
8.0.80.0030.01416.88
8.0.70.0030.00516.82
8.0.60.0000.00716.85
8.0.50.0040.00416.83
8.0.30.0130.00717.02
8.0.20.0130.00817.33
8.0.10.0240.00517.19
8.0.00.0120.01016.84
7.4.330.0050.00015.08
7.4.320.0030.00316.49
7.4.300.0030.00316.61
7.4.290.0040.00416.50
7.4.280.0080.00016.50
7.4.270.0000.00716.40
7.4.260.0000.00716.48
7.4.250.0030.00316.55
7.4.240.0040.00416.56
7.4.230.0030.00516.30
7.4.220.0040.00416.50
7.4.210.0040.01116.59
7.4.200.0030.00316.53
7.4.160.0130.00316.51
7.4.150.0150.00716.97
7.4.140.0150.00617.41
7.4.130.0120.00816.63
7.4.120.0130.00816.49
7.4.110.0190.00816.56
7.4.100.0190.00816.52
7.4.90.0130.01016.50
7.4.80.0150.00817.17
7.4.70.0150.00916.55
7.4.60.0140.01216.58
7.4.50.0180.00716.52
7.4.40.0130.01116.54
7.4.30.0160.00916.53
7.4.20.0140.00716.60
7.4.10.0160.00716.52
7.4.00.0100.01016.02
7.3.330.0060.00013.38
7.3.320.0070.00013.21
7.3.310.0030.00316.17
7.3.300.0000.00616.38
7.3.290.0100.00716.36
7.3.280.0090.01016.38
7.3.270.0160.00616.89
7.3.260.0140.00916.47
7.3.250.0140.00616.45
7.3.240.0180.01216.49
7.3.230.0140.01316.43
7.3.220.0200.01016.34
7.3.210.0140.00916.50
7.3.200.0180.00816.44
7.3.190.0210.00916.45
7.3.180.0170.00716.39
7.3.170.0160.00916.46
7.3.160.0170.01116.48
7.3.150.0140.01216.38
7.3.140.0140.01216.43
7.3.130.0160.01016.54
7.3.120.0110.00916.22
7.3.110.0100.01116.12
7.3.100.0120.00816.17
7.3.90.0110.00916.21
7.3.80.0110.00916.11
7.3.70.0110.00816.08
7.3.60.0110.01016.10
7.3.50.0100.00815.87
7.3.40.0110.00915.94
7.3.30.0090.01015.84
7.3.20.0130.00816.22
7.3.10.0130.00716.27
7.3.00.0140.00716.24
7.2.340.0220.01016.68
7.2.330.0280.00316.68
7.2.320.0190.01116.61
7.2.310.0180.01216.52
7.2.300.0220.01016.70
7.2.290.0180.00816.71
7.2.280.0190.00716.60
7.2.270.0170.01016.65
7.2.260.0120.01216.66
7.2.250.0120.00916.27
7.2.240.0170.00816.30
7.2.230.0110.01016.38
7.2.220.0120.01016.45
7.2.210.0120.00916.33
7.2.200.0140.00816.33
7.2.190.0110.01016.35
7.2.180.0100.01016.15
7.2.170.0130.01016.15
7.2.160.0140.00716.30
7.2.150.0120.01116.35
7.2.140.0190.00616.30
7.2.130.0120.00916.50
7.2.120.0140.01016.42
7.2.110.0240.00916.25
7.2.100.0210.00816.21
7.2.90.0190.00816.27
7.2.80.0140.00716.20
7.2.70.0210.00716.28
7.2.60.0260.00816.32
7.2.50.0210.00716.26
7.2.40.0230.00716.26
7.2.30.0150.01116.49
7.2.20.0190.00816.42
7.2.10.0160.00816.39
7.2.00.0150.00816.69
7.1.330.0170.00615.54
7.1.320.0130.00915.56
7.1.310.0160.00715.48
7.1.300.0140.00915.48
7.1.290.0220.00915.49
7.1.280.0140.00715.32
7.1.270.0170.00815.29
7.1.260.0140.00715.15
7.1.250.0120.00915.19
7.1.240.0170.00815.10
7.1.230.0240.00614.94
7.1.220.0220.00814.90
7.1.210.0230.01015.00
7.1.200.0270.00915.09
7.1.190.0300.00614.95
7.1.180.0270.00714.95
7.1.170.0250.00815.04
7.1.160.0210.00815.05
7.1.150.0240.00715.18
7.1.140.0220.00815.21
7.1.130.0280.00915.16
7.1.120.0220.01015.20
7.1.110.0200.01015.06
7.1.100.0190.01115.10
7.1.90.0190.00715.09
7.1.80.0190.01115.09
7.1.70.0150.01115.19
7.1.60.0200.01019.46
7.1.50.0220.01019.44
7.1.40.0260.01019.30
7.1.30.0230.00919.42
7.1.20.0220.00919.44
7.1.10.0170.00814.95
7.1.00.0170.01615.78
7.0.330.0240.01014.86
7.0.320.0220.00614.81
7.0.310.0290.00714.64
7.0.300.0260.00714.74
7.0.290.0270.01014.71
7.0.280.0240.00814.68
7.0.270.0250.00914.95
7.0.260.0250.00914.95
7.0.250.0240.01114.86
7.0.240.0200.01114.86
7.0.230.0220.01014.86
7.0.220.0220.00814.83
7.0.210.0530.01114.76
7.0.200.0180.01114.97
7.0.190.0380.00914.80
7.0.180.0170.01114.64
7.0.170.0200.00914.73
7.0.160.0190.00914.67
7.0.150.0220.00814.69
7.0.140.0210.01114.72
7.0.130.0470.01014.75
7.0.120.0160.01414.81
7.0.110.0190.01114.69
7.0.100.0180.01214.75
7.0.90.0260.01415.30
7.0.80.0310.01515.39
7.0.70.0180.01715.30
7.0.60.0190.01615.21
7.0.50.0180.01815.36
7.0.40.0180.01415.36
7.0.30.0270.01515.36
7.0.20.0270.01615.32
7.0.10.0190.01515.33
7.0.00.0250.01215.36
5.6.400.0160.01115.57
5.6.390.0140.01315.46
5.6.380.0160.00915.29
5.6.370.0180.01015.39
5.6.360.0170.01015.48
5.6.350.0170.01115.37
5.6.340.0170.01215.33
5.6.330.0160.01215.31
5.6.320.0190.01015.51
5.6.310.0190.01115.41
5.6.300.0220.01916.11
5.6.290.0180.02016.07
5.6.280.0160.01816.16
5.6.270.0200.01916.20
5.6.260.0210.01816.14
5.6.250.0200.01816.10
5.6.240.0190.01616.19
5.6.230.0180.02216.63
5.6.220.0180.02216.56
5.6.210.0170.02116.58
5.6.200.0170.02216.61
5.6.190.0180.02516.69
5.6.180.0190.02216.64
5.6.170.0180.02116.64
5.6.160.0170.02016.64
5.6.150.0170.02116.70
5.6.140.0180.02116.64
5.6.130.0180.02216.68
5.6.120.0150.02116.62
5.6.110.0170.02216.63
5.6.100.0150.02216.67
5.6.90.0200.02316.58
5.6.80.0190.02016.38
5.6.70.0190.01816.38
5.6.60.0180.02016.42
5.6.50.0160.02316.55
5.6.40.0170.02016.49
5.6.30.0190.01816.39
5.6.20.0160.02116.44
5.6.10.0160.02216.45
5.6.00.0180.02116.39
5.5.380.0170.01715.25
5.5.370.0150.01915.26
5.5.360.0170.01815.11
5.5.350.0140.02015.20
5.5.340.0160.01615.14
5.5.330.0150.02215.26
5.5.320.0150.01715.30
5.5.310.0190.01415.24
5.5.300.0180.01715.32
5.5.290.0170.01615.22
5.5.280.0170.01715.23
5.5.270.0190.01415.21
5.5.260.0170.01815.21
5.5.250.0160.02115.19
5.5.240.0160.01715.16
5.5.230.0190.01415.15
5.5.220.0160.01515.06
5.5.210.0160.01815.13
5.5.200.0190.01515.02
5.5.190.0170.01415.08
5.5.180.0190.02015.13
5.5.170.0190.00815.27
5.5.160.0200.01415.09
5.5.150.0160.01715.00
5.5.140.0170.01515.06
5.5.130.0190.01615.11
5.5.120.0180.01515.11
5.5.110.0170.01515.13
5.5.100.0160.01815.15
5.5.90.0180.01615.07
5.5.80.0190.01615.10
5.5.70.0170.01615.12
5.5.60.0180.01715.06
5.5.50.0170.01815.07
5.5.40.0170.02015.04
5.5.30.0160.01715.14
5.5.20.0170.01515.05
5.5.10.0180.01615.06
5.5.00.0170.01615.16

preferences:
64.75 ms | 401 KiB | 5 Q