3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = json_decode('{ "result": true, "users": [{ "id": 11, "expected_count": 13, "user_id": 1, "event_id": 2, "user": { "id": 1, "name": "Moiz Jamali" } }, { "id": 12, "expected_count": 12, "user_id": 2, "event_id": 2, "user": { "id": 2, "name": "Juzer Samiwala" } }] }'); function cmp($a, $b) { if ($a->user->name == $b->user->name) { return 0; } return ($a->user->name < $b->user->name) ? -1 : 1; } usort($data->users, "cmp"); 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.0110.00920.46
8.4.110.0060.00318.84
8.4.100.0100.01017.52
8.4.90.0140.00617.67
8.4.80.0130.00720.66
8.4.70.0150.00617.77
8.4.60.0100.01117.44
8.4.50.0040.00519.41
8.4.40.0030.01323.90
8.4.30.0070.01422.41
8.4.20.0130.00717.95
8.4.10.0040.00419.38
8.3.250.0130.00619.08
8.3.240.0110.00818.52
8.3.230.0060.00316.57
8.3.220.0050.00417.22
8.3.210.0110.00716.50
8.3.200.0120.00816.48
8.3.190.0100.00816.87
8.3.180.0070.00416.48
8.3.170.0060.00317.09
8.3.160.0080.00018.52
8.3.150.0170.00320.88
8.3.140.0060.00916.41
8.3.130.0040.01416.67
8.3.120.0060.01319.00
8.3.110.0000.00916.49
8.3.100.0060.00318.39
8.3.90.0060.00318.44
8.3.80.0090.00018.42
8.3.70.0110.00716.75
8.3.60.0070.01418.43
8.3.50.0070.01222.93
8.3.40.0100.00318.54
8.3.30.0100.00518.43
8.3.20.0040.00420.37
8.3.10.0000.00823.61
8.3.00.0050.00319.77
8.2.290.0090.00322.39
8.2.280.0060.00318.31
8.2.270.0110.00617.29
8.2.260.0090.00616.54
8.2.250.0150.00416.31
8.2.240.0000.00917.04
8.2.230.0070.00420.94
8.2.220.0180.00424.06
8.2.210.0080.00026.77
8.2.200.0060.00316.38
8.2.190.0030.01716.58
8.2.180.0060.01518.16
8.2.170.0040.01122.96
8.2.160.0080.00621.09
8.2.150.0050.00324.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00420.84
8.2.110.0090.00022.12
8.2.100.0070.00418.22
8.2.90.0000.00819.30
8.2.80.0030.00617.97
8.2.70.0000.00817.61
8.2.60.0040.00417.92
8.2.50.0000.00918.10
8.2.40.0040.00422.31
8.2.30.0000.00719.24
8.2.20.0000.00717.66
8.2.10.0040.00418.13
8.2.00.0050.00318.05
8.1.330.0090.01016.65
8.1.320.0110.00715.64
8.1.310.0000.00816.88
8.1.300.0090.00018.41
8.1.290.0030.00618.88
8.1.280.0170.00325.92
8.1.270.0040.00423.83
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0040.00423.97
8.1.230.0090.00317.83
8.1.220.0080.00017.74
8.1.210.0080.00018.77
8.1.200.0030.00717.25
8.1.190.0080.00017.00
8.1.180.0000.00818.10
8.1.170.0040.00418.64
8.1.160.0000.00722.08
8.1.150.0000.00820.88
8.1.140.0040.00419.54
8.1.130.0040.00417.61
8.1.120.0040.00417.40
8.1.110.0040.00417.48
8.1.100.0030.00517.43
8.1.90.0040.00417.34
8.1.80.0040.00417.52
8.1.70.0030.00317.37
8.1.60.0000.00717.59
8.1.50.0040.00417.50
8.1.40.0060.00317.41
8.1.30.0060.00317.64
8.1.20.0040.00417.48
8.1.10.0040.00417.55
8.1.00.0040.00417.42
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0070.00018.38
8.0.270.0030.00317.13
8.0.260.0000.00617.15
8.0.250.0000.00616.87
8.0.240.0000.00816.85
8.0.230.0000.00716.95
8.0.220.0070.00016.90
8.0.210.0000.00716.78
8.0.200.0070.00016.83
8.0.190.0000.00716.92
8.0.180.0070.00016.88
8.0.170.0070.00016.95
8.0.160.0030.00416.91
8.0.150.0050.00216.85
8.0.140.0030.00416.84
8.0.130.0050.00013.25
8.0.120.0040.00416.82
8.0.110.0000.00716.89
8.0.100.0070.00017.00
8.0.90.0000.00716.88
8.0.80.0070.00716.80
8.0.70.0050.00216.84
8.0.60.0030.00516.89
8.0.50.0000.00716.79
8.0.30.0090.01117.12
8.0.20.0150.00417.40
8.0.10.0000.00717.05
8.0.00.0030.01316.73
7.4.330.0050.00015.15
7.4.320.0060.00016.55
7.4.300.0060.00016.41
7.4.290.0000.00716.50
7.4.280.0070.00016.40
7.4.270.0060.00016.47
7.4.260.0030.00616.49
7.4.250.0040.00416.54
7.4.240.0000.00716.65
7.4.230.0000.00716.34
7.4.220.0030.01516.42
7.4.210.0060.01216.49
7.4.200.0000.00716.25
7.4.160.0120.00416.37
7.4.150.0120.00617.40
7.4.140.0080.01317.86
7.4.130.0090.00816.52
7.4.120.0130.00716.53
7.4.110.0100.00716.50
7.4.100.0100.00716.52
7.4.90.0090.00916.56
7.4.80.0070.01019.39
7.4.70.0130.00316.59
7.4.60.0030.01916.48
7.4.50.0090.00616.38
7.4.40.0080.00816.55
7.4.30.0070.01416.52
7.4.00.0070.01014.93
7.3.330.0030.00313.07
7.3.320.0000.00513.20
7.3.310.0000.00716.27
7.3.300.0030.00316.16
7.3.290.0070.01016.19
7.3.280.0100.00716.23
7.3.270.0070.01017.40
7.3.260.0130.00916.40
7.3.250.0130.00716.35
7.3.240.0110.00616.37
7.3.230.0140.00316.39
7.3.210.0120.00616.53
7.3.200.0090.00916.33
7.3.190.0090.01416.49
7.3.180.0110.01116.51
7.3.170.0080.00816.52
7.3.160.0070.01016.63
7.3.10.0130.00216.53
7.3.00.0070.00816.48
7.2.330.0170.00016.67
7.2.320.0090.00816.46
7.2.310.0060.01016.43
7.2.300.0150.00316.50
7.2.290.0070.01016.33
7.2.130.0110.00816.66
7.2.120.0140.00716.74
7.2.110.0080.00516.66
7.2.100.0090.00616.70
7.2.90.0160.00616.62
7.2.80.0050.00916.75
7.2.70.0100.00716.71
7.2.60.0130.00816.87
7.2.50.0070.00916.72
7.2.40.0070.00716.92
7.2.30.0080.00616.93
7.2.20.0060.00616.70
7.2.10.0060.00616.67
7.2.00.0050.00917.34
7.1.250.0060.00615.70
7.1.200.0120.00315.91
7.1.70.0000.00817.17
7.1.60.0040.00719.75
7.1.00.0070.07322.25
7.0.200.0070.00715.00
7.0.90.0930.00019.92
7.0.80.0930.00020.03
7.0.70.0830.00019.96
7.0.60.0900.00019.96
7.0.50.0730.00020.34
7.0.40.0930.00020.32
7.0.30.0800.00020.28
7.0.20.0770.00020.36
7.0.10.0830.00020.23
7.0.00.0770.00020.35
5.6.240.0930.00020.76
5.6.230.0970.00020.69
5.6.220.0870.00020.63
5.6.210.0700.00020.87
5.6.200.0700.00021.09
5.6.190.0930.00021.17
5.6.180.0870.00021.08
5.6.170.0770.00021.08
5.6.160.0830.00021.07
5.6.150.0900.00021.14
5.6.140.0970.00021.11
5.6.130.0970.00021.19
5.6.120.0800.00021.20
5.6.110.0930.00021.09
5.6.100.0830.00020.98
5.6.90.0900.00021.07
5.6.80.0870.00020.50
5.6.70.0830.00020.40
5.6.60.0770.00020.50
5.6.50.0730.00020.44
5.6.40.0700.00020.47
5.6.30.0770.00020.43
5.6.20.0770.00020.48
5.6.10.0870.00020.55
5.6.00.0770.00020.37

preferences:
31.27 ms | 403 KiB | 5 Q