3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '[{"record_id":"13","lastname":"Mustermann","first_name":"Json","dob":"1948-10-12","case_number":"1366613"}] '; $deco = json_decode($json); print_r($deco); $rec = $deco[0]->record_id; echo "$rec\n"; $deco = json_decode($json, true); print_r($deco); $rec = $deco[0]['record_id']; echo "$rec\n";

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.30.0100.00817.38
8.5.20.0100.00919.53
8.5.10.0110.00816.66
8.5.00.0120.00920.09
8.4.180.0110.01025.71
8.4.170.0130.00923.86
8.4.160.0050.00523.93
8.4.150.0050.00816.78
8.4.140.0110.00917.46
8.4.130.0120.00917.93
8.4.120.0110.00820.60
8.4.110.0090.00822.27
8.4.100.0090.00917.58
8.4.90.0080.00919.47
8.4.80.0090.00918.00
8.4.70.0050.00317.78
8.4.60.0070.01418.64
8.4.50.0060.00419.36
8.4.40.0140.00718.64
8.4.30.0130.00618.48
8.4.20.0090.01320.48
8.4.10.0050.00517.95
8.3.300.0150.00620.79
8.3.290.0100.01020.73
8.3.280.0080.00416.23
8.3.270.0110.00916.75
8.3.260.0150.00516.63
8.3.250.0100.00819.13
8.3.240.0110.00816.66
8.3.230.0060.00516.48
8.3.220.0070.00217.12
8.3.210.0120.00716.61
8.3.200.0080.00118.25
8.3.190.0120.00817.36
8.3.180.0070.01016.81
8.3.170.0120.00617.33
8.3.160.0180.00016.42
8.3.150.0140.00422.46
8.3.140.0040.00416.47
8.3.130.0030.00718.61
8.3.120.0120.00318.92
8.3.110.0030.00616.41
8.3.100.0090.00016.46
8.3.90.0110.01118.54
8.3.80.0050.00517.97
8.3.70.0120.00616.63
8.3.60.0120.00918.06
8.3.50.0140.00524.43
8.3.40.0100.01020.52
8.3.30.0090.00618.49
8.3.20.0070.00021.90
8.3.10.0040.00422.10
8.3.00.0070.00022.42
8.2.300.0130.00918.76
8.2.290.0090.00320.43
8.2.280.0100.01018.22
8.2.270.0150.00316.70
8.2.260.0150.00018.82
8.2.250.0080.00018.46
8.2.240.0000.00918.56
8.2.230.0030.00520.94
8.2.220.0040.00424.06
8.2.210.0040.01126.77
8.2.200.0100.00018.42
8.2.190.0180.00016.75
8.2.180.0040.01116.38
8.2.170.0070.01122.96
8.2.160.0120.00319.31
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0040.00420.53
8.2.100.0070.00417.66
8.2.90.0050.00317.97
8.2.80.0040.00417.97
8.2.70.0030.00517.62
8.2.60.0080.00017.63
8.2.50.0040.00418.05
8.2.40.0050.00519.88
8.2.30.0030.00618.00
8.2.20.0000.00818.06
8.2.10.0040.00419.19
8.2.00.0000.00719.23
8.1.340.0110.00821.73
8.1.330.0140.00816.68
8.1.320.0100.01116.22
8.1.310.0000.00816.76
8.1.300.0060.00317.67
8.1.290.0030.00718.88
8.1.280.0090.00925.92
8.1.270.0040.00422.10
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00622.09
8.1.230.0000.01120.91
8.1.220.0040.00417.74
8.1.210.0000.00818.85
8.1.200.0070.00417.40
8.1.190.0060.00317.00
8.1.180.0040.00418.10
8.1.170.0060.00317.62
8.1.160.0070.00018.83
8.1.150.0000.00718.79
8.1.140.0060.00318.78
8.1.130.0000.00720.07
8.1.120.0000.00817.33
8.1.110.0020.00517.29
8.1.100.0030.00517.41
8.1.90.0030.00317.29
8.1.80.0000.00717.42
8.1.70.0030.00317.41
8.1.60.0050.00317.45
8.1.50.0000.00917.46
8.1.40.0040.00417.48
8.1.30.0000.00817.43
8.1.20.0030.00517.52
8.1.10.0060.00317.58
8.1.00.0000.00717.41
8.0.300.0070.00020.07
8.0.290.0030.00516.75
8.0.280.0030.00318.46
8.0.270.0080.00017.89
8.0.260.0000.00821.86
8.0.250.0030.00316.94
8.0.240.0000.00616.99
8.0.230.0030.00316.98
8.0.220.0000.00716.93
8.0.210.0030.00316.88
8.0.200.0030.00316.95
8.0.190.0000.00816.85
8.0.180.0040.00416.82
8.0.170.0030.00716.99
8.0.160.0040.00416.89
8.0.150.0000.00716.91
8.0.140.0030.00616.75
8.0.130.0050.00013.29
8.0.120.0040.00416.82
8.0.110.0000.00716.86
8.0.100.0000.00716.90
8.0.90.0000.00816.70
8.0.80.0070.00816.83
8.0.70.0040.00416.88
8.0.60.0000.00816.75
8.0.50.0000.00716.84
8.0.30.0130.00317.30
8.0.20.0100.00916.98
8.0.10.0000.00716.78
8.0.00.0090.00916.67
7.4.330.0000.00515.55
7.4.320.0030.00316.61
7.4.300.0070.00016.63
7.4.290.0090.00016.41
7.4.280.0030.00516.49
7.4.270.0000.00716.38
7.4.260.0060.00013.33
7.4.250.0070.00016.48
7.4.240.0020.00516.51
7.4.230.0030.00516.55
7.4.220.0020.00516.47
7.4.210.0090.00716.54
7.4.200.0030.00316.50
7.4.130.0090.00816.49
7.4.120.0100.01316.66
7.4.110.0090.01216.41
7.4.100.0000.02016.39
7.4.90.0000.01816.55
7.4.80.0150.00619.39
7.4.70.0060.00916.41
7.4.60.0090.00716.45
7.4.50.0060.01316.52
7.4.40.0050.01416.42
7.4.30.0090.00916.37
7.4.20.0060.01116.62
7.4.10.0120.00916.42
7.4.00.0130.00616.60
7.3.330.0000.00716.09
7.3.320.0000.00613.18
7.3.310.0070.00016.19
7.3.300.0000.00716.28
7.3.290.0060.01016.33
7.3.260.0110.00616.35
7.3.230.0090.00916.35
7.3.210.0060.01016.32
7.3.200.0080.00816.63
7.3.190.0120.00316.55
7.3.180.0110.00316.34
7.3.170.0130.01016.32
7.3.160.0100.00816.46
7.3.150.0070.01216.38
7.3.140.0080.01116.31
7.3.130.0120.00616.62
7.3.120.0130.00516.32
7.3.110.0080.01016.42
7.3.100.0130.00616.10
7.3.90.0120.00816.40
7.3.80.0090.01016.40
7.3.70.0110.00916.40
7.3.60.0110.00916.37
7.3.50.0120.00816.44
7.3.40.0120.00816.40
7.3.30.0080.01316.30
7.3.20.0070.01216.45
7.3.10.0110.00716.28
7.3.00.0090.00916.29
7.2.330.0030.01416.57
7.2.320.0120.00416.65
7.2.310.0030.01316.49
7.2.300.0060.01216.62
7.2.290.0070.01116.53
7.2.280.0100.00816.67
7.2.270.0080.01116.57
7.2.260.0070.01316.58
7.2.250.0110.00816.40
7.2.240.0100.00916.66
7.2.230.0130.00716.52
7.2.220.0060.01316.52
7.2.210.0100.00916.22
7.2.200.0100.01116.48
7.2.190.0080.01116.54
7.2.180.0100.00916.42
7.2.170.0090.01216.46
7.2.160.0110.00916.49
7.2.150.0090.00816.60
7.2.140.0070.01216.57
7.2.130.0140.00616.57
7.2.120.0140.00516.72
7.2.110.0100.00816.63
7.2.100.0100.01116.41
7.2.90.0160.00816.63
7.2.80.0130.00516.71
7.2.70.0140.00716.44
7.2.60.0150.00816.48
7.2.50.0170.00716.41
7.2.40.0090.01116.67
7.2.30.0120.00816.71
7.2.20.0140.00916.63
7.2.10.0100.00916.58
7.2.00.0090.00916.57

preferences:
112.05 ms | 1586 KiB | 5 Q