3v4l.org

run code in 300+ PHP versions simultaneously
<?php function isJson($string) { json_decode($string); return (json_last_error() == JSON_ERROR_NONE); } $a=['arraiii'=>['dentro'=>234]]; $b=json_encode($a); var_dump(isJson($b));

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.60.0060.00918.40
8.3.50.0140.00721.27
8.3.40.0110.00418.42
8.3.30.0130.00020.33
8.3.20.0040.00420.34
8.3.10.0040.00422.13
8.3.00.0080.00022.39
8.2.180.0150.00316.38
8.2.170.0070.00722.96
8.2.160.0060.00622.13
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0000.00820.70
8.2.110.0150.00622.16
8.2.100.0110.00017.72
8.2.90.0080.00018.91
8.2.80.0000.00819.32
8.2.70.0000.00917.38
8.2.60.0050.00317.68
8.2.50.0060.00318.07
8.2.40.0040.00418.03
8.2.30.0040.00419.50
8.2.20.0040.00417.54
8.2.10.0000.00717.61
8.2.00.0040.00417.75
8.1.280.0120.00625.92
8.1.270.0000.00823.99
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0110.00018.86
8.1.230.0090.00318.97
8.1.220.0000.00717.74
8.1.210.0050.00318.77
8.1.200.0000.01117.35
8.1.190.0040.00417.53
8.1.180.0030.00518.10
8.1.170.0040.00418.50
8.1.160.0050.00318.89
8.1.150.0060.00318.56
8.1.140.0000.00717.36
8.1.130.0000.00717.82
8.1.120.0030.00317.51
8.1.110.0000.00717.52
8.1.100.0080.00017.49
8.1.90.0070.00017.34
8.1.80.0050.00317.46
8.1.70.0000.00717.44
8.1.60.0030.00517.61
8.1.50.0020.00517.54
8.1.40.0000.00817.45
8.1.30.0000.00817.58
8.1.20.0070.00017.68
8.1.10.0000.00717.39
8.1.00.0030.00717.25
8.0.300.0060.00318.77
8.0.290.0030.00517.04
8.0.280.0000.00718.39
8.0.270.0000.00717.19
8.0.260.0000.00716.70
8.0.250.0000.00616.80
8.0.240.0070.00016.89
8.0.230.0070.00016.85
8.0.220.0000.00716.84
8.0.210.0050.00216.86
8.0.200.0060.00016.88
8.0.190.0000.00816.93
8.0.180.0070.00416.86
8.0.170.0080.00016.82
8.0.160.0000.00716.71
8.0.150.0080.00416.78
8.0.140.0040.00416.87
8.0.130.0030.00313.34
8.0.120.0000.00816.93
8.0.110.0000.00716.82
8.0.100.0030.00316.92
8.0.90.0040.00416.79
8.0.80.0030.01816.88
8.0.70.0050.00316.90
8.0.60.0000.00716.70
8.0.50.0040.00416.79
8.0.30.0100.01117.05
8.0.20.0070.01417.40
8.0.10.0000.00717.06
8.0.00.0100.01016.77
7.4.330.0060.00015.00
7.4.320.0080.00016.63
7.4.300.0030.00316.44
7.4.290.0070.00016.52
7.4.280.0000.00716.51
7.4.270.0000.00716.61
7.4.260.0050.00013.39
7.4.250.0040.00416.57
7.4.240.0020.00516.52
7.4.230.0000.00716.65
7.4.220.0030.01716.53
7.4.210.0060.01116.50
7.4.200.0000.00716.63
7.4.190.0070.00016.68
7.4.160.0120.00416.48
7.4.150.0080.01017.40
7.4.140.0030.01517.86
7.4.130.0100.00716.44
7.4.120.0110.00616.58
7.4.110.0090.00916.47
7.4.100.0070.01116.41
7.4.90.0110.01116.39
7.4.80.0060.01319.39
7.4.70.0080.00816.63
7.4.60.0140.00316.48
7.4.50.0030.00616.36
7.4.40.0040.00822.77
7.4.30.0110.00616.52
7.4.00.0140.00414.64
7.3.330.0000.00613.25
7.3.320.0000.00513.18
7.3.310.0000.00716.21
7.3.300.0000.00716.26
7.3.290.0030.01016.18
7.3.280.0120.00716.28
7.3.270.0110.00817.40
7.3.260.0080.00816.35
7.3.250.0090.00916.27
7.3.240.0140.00316.37
7.3.230.0070.01016.55
7.3.210.0080.00816.33
7.3.200.0100.00719.39
7.3.190.0080.01216.29
7.3.180.0130.00316.27
7.3.170.0060.00916.33
7.3.160.0060.00916.45
7.3.120.0030.01014.80
7.2.330.0060.01116.43
7.2.320.0110.01116.57
7.2.310.0130.00316.68
7.2.300.0060.01116.26
7.2.290.0060.01616.45
7.2.00.0000.01019.30
7.1.200.0040.00715.50
7.1.100.0070.01418.32
7.1.70.0070.00417.13
7.1.60.0110.01419.32
7.1.50.0070.01416.90
7.1.00.0070.03022.31
7.0.200.0030.00616.73
7.0.140.0070.07322.00
7.0.90.0370.04319.94
7.0.80.0430.05019.91
7.0.70.0570.08320.02
7.0.60.0370.05019.97
7.0.50.0600.08320.28
7.0.40.0030.05720.18
7.0.30.0070.05320.05
7.0.20.0070.07720.18
7.0.10.0070.06320.12
7.0.00.0070.08720.00
5.6.280.0030.07321.07
5.6.230.0030.05720.57
5.6.220.0100.07020.53
5.6.210.0000.04320.67
5.6.200.0070.07021.11
5.6.190.0100.04321.08
5.6.180.0070.08720.93
5.6.170.0070.05021.11
5.6.160.0130.07721.11
5.6.150.0070.05021.08
5.6.140.0070.04721.04
5.6.130.0070.05021.09
5.6.120.0000.08721.05
5.6.110.0070.04321.06
5.6.100.0230.06721.01
5.6.90.0070.08720.94
5.6.80.0100.07320.40
5.6.70.0100.04320.43
5.6.60.0170.06720.48
5.6.50.0130.03720.39
5.6.40.0170.06320.41
5.6.30.0130.04020.33
5.6.20.0100.05720.45
5.6.10.0070.08720.36
5.6.00.0070.04720.46
5.5.370.0030.07020.50
5.5.360.0100.07320.39
5.5.350.0070.08720.48
5.5.340.0170.07020.89
5.5.330.0170.06320.93
5.5.320.0130.07720.88
5.5.310.0030.06020.88
5.5.300.0070.08320.83
5.5.290.0170.07020.73
5.5.280.0100.08020.73
5.5.270.0070.06320.75
5.5.260.0030.09320.72
5.5.250.0030.09020.54
5.5.240.0100.04320.14
5.5.230.0030.08720.26
5.5.220.0030.06020.22
5.5.210.0130.06320.26
5.5.200.0130.04320.13
5.5.190.0100.08320.14
5.5.180.0030.06020.15
5.5.160.0000.08320.18
5.5.150.0070.05020.23
5.5.140.0100.04320.17
5.5.130.0130.07320.14
5.5.120.0100.04720.23
5.5.110.0030.07720.20
5.5.100.0000.07720.08
5.5.90.0070.07320.01
5.5.80.0170.07020.07
5.5.70.0070.05020.00
5.5.60.0070.04720.04
5.5.50.0070.03720.20
5.5.40.0070.07720.03
5.5.30.0070.04320.14
5.5.20.0030.08020.06
5.5.10.0100.07720.13
5.5.00.0100.07020.03
5.4.450.0070.05319.51
5.4.440.0030.05719.56
5.4.430.0070.07319.20
5.4.420.0000.07319.45
5.4.410.0130.05019.32
5.4.400.0030.08019.19
5.4.390.0030.08019.05
5.4.380.0100.07019.09
5.4.370.0100.04719.14
5.4.360.0100.07318.95
5.4.350.0030.07719.04
5.4.340.0130.07018.95
5.4.320.0100.07018.90
5.4.310.0100.07018.90
5.4.300.0100.07018.88
5.4.290.0030.06318.96
5.4.280.0130.07019.12
5.4.270.0030.05019.16
5.4.260.0170.06718.85
5.4.250.0070.03718.86
5.4.240.0070.07719.15
5.4.230.0070.08018.89
5.4.220.0100.07319.15
5.4.210.0130.03319.09
5.4.200.0000.07719.04
5.4.190.0100.07319.04
5.4.180.0130.06718.89
5.4.170.0030.07318.93
5.4.160.0070.07019.01
5.4.150.0070.04719.03
5.4.140.0070.07316.41
5.4.130.0070.04716.20
5.4.120.0070.06716.40
5.4.110.0070.07316.36
5.4.100.0030.06316.51
5.4.90.0100.06716.40
5.4.80.0100.06716.34
5.4.70.0030.05016.34
5.4.60.0030.03716.37
5.4.50.0100.06316.31
5.4.40.0030.07716.39
5.4.30.0070.07016.46
5.4.20.0030.07016.41
5.4.10.0070.07316.33
5.4.00.0070.07315.79
5.3.290.0070.05014.65
5.3.280.0000.07714.59
5.3.270.0100.07314.72
5.3.260.0000.08014.53
5.3.250.0100.07014.59
5.3.240.0000.08314.71
5.3.230.0130.07314.55
5.3.220.0030.04714.53
5.3.210.0100.07014.68
5.3.200.0130.07014.57
5.3.190.0100.06714.53
5.3.180.0030.08014.49
5.3.170.0070.07314.68
5.3.160.0100.03314.57
5.3.150.0070.03314.62
5.3.140.0130.07014.57
5.3.130.0000.05014.57
5.3.120.0000.04714.56
5.3.110.0130.04014.47
5.3.100.0070.07314.01
5.3.90.0070.07014.08
5.3.80.0130.06714.16
5.3.70.0100.07014.06
5.3.60.0100.07014.01
5.3.50.0070.07313.98
5.3.40.0000.05014.05
5.3.30.0130.04313.83
5.3.20.0100.06713.62
5.3.10.0170.06713.64
5.3.00.0170.06713.70
5.2.170.0000.05011.03
5.2.160.0100.05711.17
5.2.150.0030.06311.19
5.2.140.0030.06311.14
5.2.130.0070.05311.12
5.2.120.0030.06311.00
5.2.110.0070.06011.00
5.2.100.0070.05710.97
5.2.90.0000.04711.13
5.2.80.0070.06311.21
5.2.70.0030.04011.23
5.2.60.0070.05011.06
5.2.50.0070.06310.88
5.2.40.0030.06311.05
5.2.30.0100.05310.83
5.2.20.0070.04710.98
5.2.10.0000.04310.93
5.2.00.0030.02710.78
5.1.60.0000.05010.07
5.1.50.0100.0239.99
5.1.40.0030.03010.08
5.1.30.0070.05310.27
5.1.20.0070.03710.45
5.1.10.0000.03710.15
5.1.00.0070.05010.06
5.0.50.0000.0308.64
5.0.40.0000.0408.39
5.0.30.0030.0608.31
5.0.20.0000.0238.30
5.0.10.0030.0438.24
5.0.00.0000.0677.99
4.4.90.0030.0337.13
4.4.80.0000.0277.13
4.4.70.0030.0277.13
4.4.60.0030.0337.13
4.4.50.0030.0237.13
4.4.40.0070.0507.13
4.4.30.0000.0377.13
4.4.20.0000.0277.13
4.4.10.0030.0207.13
4.4.00.0000.0577.13
4.3.110.0000.0277.13
4.3.100.0000.0207.13
4.3.90.0000.0237.13
4.3.80.0000.0407.13
4.3.70.0030.0177.13
4.3.60.0000.0307.13
4.3.50.0030.0307.13
4.3.40.0100.0437.13
4.3.30.0000.0277.13
4.3.20.0030.0177.13
4.3.10.0000.0207.13
4.3.00.0030.0277.13

preferences:
51.66 ms | 401 KiB | 5 Q