3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '[ { "id": "1087", "name": "Abhishek Saini", "email": "info@gmail.com", "gender": "male" }, { "id": "1088", "name": "Gourav", "email": "test@gmail.com", "gender": "male" } ]'; $json = json_decode($str, true); $json = array('users' => $json); echo json_encode($json, JSON_PRETTY_PRINT);

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.70.0120.00318.43
8.3.60.0140.00718.30
8.3.50.0090.00616.14
8.3.40.0170.00318.79
8.3.30.0180.00318.79
8.3.20.0110.00424.18
8.3.10.0070.01024.66
8.3.00.0080.00026.16
8.2.180.0100.01025.92
8.2.170.0080.01118.78
8.2.160.0040.01122.96
8.2.150.0000.00825.66
8.2.140.0000.00824.66
8.2.130.0000.00826.16
8.2.120.0070.00021.12
8.2.110.0060.00320.39
8.2.100.0060.00617.91
8.2.90.0030.00517.75
8.2.80.0080.00018.70
8.2.70.0050.00317.93
8.2.60.0040.00418.22
8.2.50.0060.00318.10
8.2.40.0080.00021.03
8.2.30.0040.00419.36
8.2.20.0040.00418.18
8.2.10.0000.00719.16
8.2.00.0040.00319.22
8.1.280.0150.00325.92
8.1.270.0040.00720.69
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0110.01122.04
8.1.230.0040.00722.15
8.1.220.0000.00817.78
8.1.210.0040.00418.77
8.1.200.0030.00817.23
8.1.190.0040.00417.10
8.1.180.0080.00018.10
8.1.170.0040.00418.46
8.1.160.0050.00219.00
8.1.150.0070.00018.73
8.1.140.0090.00018.85
8.1.130.0070.00017.37
8.1.120.0050.00217.41
8.1.110.0050.00317.36
8.1.100.0080.00017.26
8.1.90.0000.00717.33
8.1.80.0070.00317.39
8.1.70.0030.00317.39
8.1.60.0060.00317.39
8.1.50.0080.00017.45
8.1.40.0030.00517.38
8.1.30.0040.00417.57
8.1.20.0080.00017.47
8.1.10.0000.00817.59
8.1.00.0000.00917.55
8.0.300.0000.00818.77
8.0.290.0000.00716.63
8.0.280.0070.00018.43
8.0.270.0060.00316.71
8.0.260.0030.00316.80
8.0.250.0000.00716.81
8.0.240.0030.00516.96
8.0.230.0040.00416.91
8.0.220.0000.00716.78
8.0.210.0050.00216.80
8.0.200.0040.00416.84
8.0.190.0040.00416.82
8.0.180.0070.00016.84
8.0.170.0040.00416.80
8.0.160.0040.00416.70
8.0.150.0000.00716.66
8.0.140.0070.00316.71
8.0.130.0030.00313.29
8.0.120.0050.00316.79
8.0.110.0040.00416.75
8.0.100.0030.00516.85
8.0.90.0020.00516.80
8.0.80.0100.00716.78
8.0.70.0040.00416.64
8.0.60.0040.00416.70
8.0.50.0000.00716.78
8.0.30.0030.02217.02
8.0.20.0110.00717.10
8.0.10.0000.00716.82
8.0.00.0200.01417.86
7.4.330.0050.00015.55
7.4.320.0040.00416.54
7.4.300.0040.00416.43
7.4.290.0030.00516.45
7.4.280.0040.00416.38
7.4.270.0040.00416.57
7.4.260.0000.00513.21
7.4.250.0000.00716.41
7.4.240.0030.00316.52
7.4.230.0000.00716.42
7.4.220.0020.00616.44
7.4.210.0050.01216.53
7.4.200.0030.00516.46
7.4.140.0090.00917.86
7.4.130.0340.00517.86
7.4.120.0260.00517.86
7.4.110.0310.00317.86
7.4.100.0310.00317.86
7.4.90.0290.01217.86
7.4.80.0210.01117.86
7.4.70.0200.01217.86
7.4.60.0210.00917.86
7.4.50.0230.00317.86
7.4.40.0180.00417.86
7.4.30.0240.01217.86
7.4.20.0180.01417.86
7.4.10.0310.00617.86
7.4.00.0300.01317.86
7.3.330.0000.00716.05
7.3.320.0030.00313.06
7.3.310.0000.00716.18
7.3.300.0030.00316.01
7.3.290.0100.00516.22
7.3.260.0260.00517.86
7.3.250.0250.01017.86
7.3.240.0270.00817.86
7.3.230.0210.01517.86
7.3.220.0370.00517.86
7.3.210.0300.01317.86
7.3.200.0280.01117.86
7.3.190.0280.00817.86
7.3.180.0150.01017.86
7.3.170.0090.01317.86
7.3.160.0210.01217.86
7.3.150.0200.01317.86
7.3.140.0320.00817.86
7.3.130.0220.02217.86
7.3.120.0450.01017.86
7.3.110.0250.01317.86
7.3.100.0210.01717.86
7.3.90.0230.01517.86
7.3.80.0220.01617.86
7.3.70.0220.01517.86
7.3.60.0390.00417.86
7.3.50.0230.01517.86
7.3.40.0290.00817.86
7.3.30.0270.01017.86
7.3.20.0340.00417.86
7.3.10.0300.00717.86
7.3.00.0280.01417.86

preferences:
82.02 ms | 401 KiB | 5 Q