3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{"question":"This is \"some quotes\" and also \'single quotes\'","options":["Here is an emoji: ud83dude06","With some slashes/too and back\\\\as well"]}'; var_dump($json); var_dump(json_decode($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.4.130.0070.00317.77
8.4.120.0120.00824.23
8.4.110.0110.00818.96
8.4.100.0120.00817.45
8.4.90.0060.00420.54
8.4.80.0120.00718.67
8.4.70.0040.00420.45
8.4.60.0100.00620.47
8.4.50.0060.00318.66
8.4.40.0170.00017.43
8.4.30.0130.00719.99
8.4.20.0040.00417.74
8.4.10.0060.00319.61
8.3.250.0110.00318.77
8.3.240.0130.00616.23
8.3.230.0120.00716.63
8.3.220.0050.00418.79
8.3.210.0080.00616.41
8.3.200.0130.00616.30
8.3.190.0090.00918.65
8.3.180.0030.00518.90
8.3.170.0140.00016.93
8.3.160.0070.00018.71
8.3.150.0000.00818.46
8.3.140.0090.00920.34
8.3.130.0040.00418.34
8.3.120.0030.00618.82
8.3.110.0000.00916.48
8.3.100.0100.00618.39
8.3.90.0070.00726.77
8.3.80.0030.00719.36
8.3.70.0140.00316.63
8.3.60.0220.00016.50
8.3.50.0130.00523.47
8.3.40.0100.01021.91
8.3.30.0090.00918.69
8.3.20.0030.00524.18
8.3.10.0070.00024.66
8.3.00.0000.00726.16
8.2.290.0120.00716.64
8.2.280.0100.00818.43
8.2.270.0190.00016.74
8.2.260.0110.00417.03
8.2.250.0070.01016.39
8.2.240.0090.00018.13
8.2.230.0060.00320.94
8.2.220.0080.00024.06
8.2.210.0000.00826.77
8.2.200.0090.00018.88
8.2.190.0110.00416.58
8.2.180.0150.00625.92
8.2.170.0200.00018.97
8.2.160.0100.00722.96
8.2.150.0050.00325.66
8.2.140.0000.00724.66
8.2.130.0080.00026.16
8.2.120.0050.00226.35
8.2.110.0030.00620.35
8.2.100.0090.00317.43
8.2.90.0040.00417.75
8.2.80.0050.00318.64
8.2.70.0000.01317.00
8.2.60.0060.00317.38
8.2.50.0030.00618.05
8.2.40.0000.00819.95
8.2.30.0030.00618.10
8.2.20.0070.00017.96
8.2.10.0000.00719.18
8.2.00.0050.00219.11
8.1.330.0130.00516.00
8.1.320.0150.00818.05
8.1.310.0000.00816.73
8.1.300.0040.01219.66
8.1.290.0060.00330.84
8.1.280.0100.00725.92
8.1.270.0090.00023.99
8.1.260.0070.00028.09
8.1.250.0000.00828.09
8.1.240.0030.01021.77
8.1.230.0070.00420.87
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0000.00817.23
8.1.190.0060.00317.23
8.1.180.0040.00418.10
8.1.170.0050.00318.56
8.1.160.0070.00018.82
8.1.150.0070.00018.87
8.1.140.0000.00718.69
8.1.130.0030.00320.06
8.1.120.0000.00717.43
8.1.110.0040.00417.31
8.1.100.0040.00417.21
8.1.90.0040.00417.41
8.1.80.0000.00817.42
8.1.70.0050.00217.39
8.1.60.0030.00917.48
8.1.50.0040.00417.48
8.1.40.0040.00417.49
8.1.30.0080.00017.62
8.1.20.0030.00617.45
8.1.10.0080.00017.47
8.1.00.0030.00617.39
8.0.300.0000.00818.77
8.0.290.0040.00416.63
8.0.280.0030.00318.41
8.0.270.0000.00717.93
8.0.260.0030.00318.46
8.0.250.0030.00316.90
8.0.240.0000.00716.82
8.0.230.0070.00016.88
8.0.220.0040.00416.73
8.0.210.0030.00316.82
8.0.200.0070.00016.89
8.0.190.0040.00416.94
8.0.180.0000.00716.85
8.0.170.0050.00316.75
8.0.160.0040.00416.86
8.0.150.0090.00316.77
8.0.140.0000.00716.69
8.0.130.0000.00513.29
8.0.120.0040.00416.70
8.0.110.0000.00816.86
8.0.100.0000.00716.84
8.0.90.0070.00016.60
8.0.80.0040.01116.81
8.0.70.0070.00016.85
8.0.60.0050.00216.86
8.0.50.0080.00016.68
8.0.30.0100.00616.92
8.0.20.0070.01517.02
8.0.10.0040.00416.81
8.0.00.0070.01316.57
7.4.330.0060.00015.55
7.4.320.0000.00616.39
7.4.300.0040.00416.55
7.4.290.0040.00416.45
7.4.280.0060.00316.45
7.4.270.0000.00716.45
7.4.260.0030.00313.22
7.4.250.0070.00016.49
7.4.240.0000.00716.42
7.4.230.0030.00316.52
7.4.220.0070.00016.27
7.4.210.0050.00816.49
7.4.200.0040.00416.57
7.4.130.0110.01116.27
7.4.120.0040.01516.28
7.4.110.0160.00616.15
7.4.100.0110.00716.29
7.4.90.0130.01016.38
7.4.80.0070.01716.32
7.4.70.0180.00316.25
7.4.60.0110.01516.44
7.4.50.0190.00316.39
7.4.40.0190.00616.09
7.4.30.0090.01116.23
7.4.20.0100.01016.52
7.4.10.0130.00716.13
7.4.00.0100.01016.31
7.3.330.0030.00316.14
7.3.320.0000.00612.97
7.3.310.0000.00716.16
7.3.300.0000.00616.12
7.3.290.0100.00616.13
7.3.260.0180.00616.29
7.3.250.0130.00616.11
7.3.240.0160.00316.18
7.3.230.0160.00616.25
7.3.220.0160.00316.27
7.3.210.0110.01116.41
7.3.200.0120.00816.14
7.3.190.0040.01516.08
7.3.180.0090.01516.29
7.3.170.0200.00016.45
7.3.160.0190.00416.01
7.3.150.0110.01115.84
7.3.140.0110.01116.12
7.3.130.0150.00616.26
7.3.120.0140.00316.18
7.3.110.0120.00916.41
7.3.100.0120.00616.30
7.3.90.0160.01015.95
7.3.80.0150.00916.29
7.3.70.0070.01916.04
7.3.60.0130.01015.93
7.3.50.0150.00916.01
7.3.40.0090.00916.23
7.3.30.0120.00615.98
7.3.20.0070.01316.08
7.3.10.0060.02015.99
7.3.00.0090.01516.09

preferences:
34.56 ms | 403 KiB | 5 Q