3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '[ { "id":"1", "f_name":"Mitrajit", "l_name":"Samanta", "class":"XII", "section":"A,B,C", "roll":"1", "status":"1" } ]'; $json = json_decode($str, true); $json[0]["section"] = explode(",", $json[0]["section"]); $json = json_encode($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.5.00.0110.01020.05
8.4.150.0030.00014.05
8.4.140.0140.00917.58
8.4.130.0070.00317.80
8.4.120.0130.00624.21
8.4.110.0080.01222.29
8.4.100.0100.00918.86
8.4.90.0030.00619.02
8.4.80.0070.01020.25
8.4.70.0100.00618.22
8.4.60.0130.00718.79
8.4.50.0090.00618.83
8.4.40.0100.01019.27
8.4.30.0040.00417.77
8.4.20.0150.00318.61
8.4.10.0130.00317.70
8.3.280.0120.00718.35
8.3.270.0110.00716.43
8.3.260.0100.00916.34
8.3.250.0130.00618.80
8.3.240.0050.00418.96
8.3.230.0110.00616.59
8.3.220.0080.01118.73
8.3.210.0110.00916.65
8.3.200.0070.00616.60
8.3.190.0100.00817.05
8.3.180.0120.00716.38
8.3.170.0150.00320.67
8.3.160.0150.00416.83
8.3.150.0080.00020.89
8.3.140.0030.01019.04
8.3.130.0030.00716.77
8.3.120.0070.01120.66
8.3.110.0030.01216.40
8.3.100.0030.00524.06
8.3.90.0080.00026.77
8.3.80.0060.00316.50
8.3.70.0090.01316.50
8.3.60.0100.00618.18
8.3.50.0110.00817.26
8.3.40.0000.01518.92
8.3.30.0040.01218.80
8.3.20.0040.00418.46
8.3.10.0050.00321.91
8.3.00.0000.00823.48
8.2.290.0130.00620.56
8.2.280.0120.00620.06
8.2.270.0150.00317.28
8.2.260.0140.00417.22
8.2.250.0080.00016.43
8.2.240.0110.00717.30
8.2.230.0060.00320.94
8.2.220.0040.00437.54
8.2.210.0080.00026.77
8.2.200.0060.00316.63
8.2.190.0160.00318.49
8.2.180.0190.00016.88
8.2.170.0180.00322.96
8.2.160.0100.00319.14
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0080.00020.74
8.2.110.0030.00721.03
8.2.100.0040.00817.59
8.2.90.0040.00420.59
8.2.80.0030.00717.97
8.2.70.0060.00317.93
8.2.60.0000.00718.03
8.2.50.0050.00318.10
8.2.40.0050.00319.53
8.2.30.0000.00720.56
8.2.20.0040.00417.98
8.2.10.0000.00717.94
8.2.00.0060.00318.14
8.1.330.0110.00822.06
8.1.320.0090.01116.11
8.1.310.0040.01518.45
8.1.300.0190.00017.88
8.1.290.0060.00318.88
8.1.280.0120.00325.92
8.1.270.0040.00420.37
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0050.00522.40
8.1.230.0050.00520.85
8.1.220.0030.00617.74
8.1.210.0000.00918.77
8.1.200.0090.00017.13
8.1.190.0000.00819.01
8.1.180.0080.00018.10
8.1.170.0050.00318.66
8.1.160.0040.00418.73
8.1.150.0000.00718.72
8.1.140.0030.00418.68
8.1.130.0000.00820.27
8.1.120.0040.00417.37
8.1.110.0000.00817.35
8.1.100.0040.00417.32
8.1.90.0000.00817.39
8.1.80.0040.00417.38
8.1.70.0040.00417.29
8.1.60.0040.00417.49
8.1.50.0030.00517.45
8.1.40.0040.00417.39
8.1.30.0030.00617.47
8.1.20.0040.00417.61
8.1.10.0040.00417.48
8.1.00.0040.00417.45
8.0.300.0040.00419.86
8.0.290.0070.00016.58
8.0.280.0070.00018.30
8.0.270.0030.00317.19
8.0.260.0030.00320.17
8.0.250.0040.00216.88
8.0.240.0030.00316.89
8.0.230.0070.00016.77
8.0.220.0020.00516.79
8.0.210.0000.00716.82
8.0.200.0000.00716.81
8.0.190.0040.00416.73
8.0.180.0080.00016.81
8.0.170.0040.00416.84
8.0.160.0000.00716.78
8.0.150.0030.00516.85
8.0.140.0070.00016.81
8.0.130.0050.00013.27
8.0.120.0000.00916.78
8.0.110.0050.00316.73
8.0.100.0030.00516.89
8.0.90.0040.00416.74
8.0.80.0100.01016.82
8.0.70.0000.00716.90
8.0.60.0000.00716.77
8.0.50.0030.00516.73
8.0.30.0060.01317.01
8.0.20.0060.01317.40
8.0.10.0070.00016.85
8.0.00.0090.00816.73
7.4.330.0000.00515.55
7.4.320.0050.00316.46
7.4.300.0040.00416.55
7.4.290.0040.00416.43
7.4.280.0040.00416.47
7.4.270.0070.00016.55
7.4.260.0080.00016.41
7.4.250.0000.00716.41
7.4.240.0070.00016.31
7.4.230.0070.00016.20
7.4.220.0070.00016.48
7.4.210.0060.00816.49
7.4.200.0070.00016.24
7.4.160.0090.00716.45
7.4.140.0100.00717.86
7.4.130.0090.01016.48
7.4.120.0070.01316.43
7.4.110.0090.00916.30
7.4.100.0170.01016.68
7.4.90.0000.02416.48
7.4.80.0090.00819.39
7.4.70.0220.00016.49
7.4.60.0060.01216.28
7.4.50.0090.00316.33
7.4.40.0060.01216.34
7.4.00.0100.00715.13
7.3.330.0000.00612.95
7.3.320.0030.00313.04
7.3.310.0030.00316.07
7.3.300.0030.00316.04
7.3.290.0030.00316.23
7.3.280.0130.00716.27
7.3.260.0110.01016.44
7.3.240.0050.01216.45
7.3.230.0060.00916.23
7.3.210.0160.00616.16
7.3.200.0080.00816.16
7.3.190.0090.00716.56
7.3.180.0110.00516.16
7.3.170.0060.00916.37
7.3.160.0130.00616.21
7.2.330.0060.01316.38
7.2.320.0190.00016.32
7.2.310.0030.01416.70
7.2.300.0090.00616.48
7.2.290.0090.00916.75
7.2.100.1680.00714.27
7.2.90.0530.00614.42
7.2.80.1320.00314.27
7.2.70.0890.00314.68
7.2.60.0110.00614.92
7.2.50.1380.00714.53
7.2.40.0130.01015.07
7.2.30.0060.01615.09
7.2.20.0320.00614.60
7.2.10.0120.00915.22
7.2.00.0330.00314.85
7.1.220.0230.01013.81
7.1.210.0180.00313.39
7.1.200.4090.00013.60
7.1.190.0110.00413.50
7.1.180.0140.00713.86
7.1.170.0180.00913.93
7.1.160.3510.00313.61
7.1.150.0120.00613.54
7.1.140.0430.01013.90
7.1.130.0030.01413.78
7.1.120.0290.00313.76
7.1.110.0220.00413.95
7.1.100.0090.00913.78
7.1.90.0130.01013.41
7.1.80.0200.00313.64
7.1.70.0130.00613.52
7.1.60.0500.00931.70
7.1.50.1250.01031.62
7.1.40.0410.00931.51
7.1.30.1510.00331.97
7.1.20.0320.01332.00
7.1.10.0170.00313.52
7.1.00.0110.00313.70
5.6.380.0040.01514.40

preferences:
30.88 ms | 403 KiB | 5 Q