<?php
$string = '[]';
for ($i = 0; $i < 50000; $i++)
$string = '[' . $string . ']';
$s = microtime(true);
//var_dump($string);
$result = json_decode($string);
var_dump($result, json_last_error(), JSON_ERROR_DEPTH);
var_dump(microtime(true) - $s);
- Output for 7.2.10, 7.3.1
- NULL
int(1)
int(1)
float(7.5101852416992E-5)
- Output for 7.1.6, 7.2.0, 7.3.0
- NULL
int(1)
int(1)
float(8.2015991210938E-5)
- Output for 7.2.13
- NULL
int(1)
int(1)
float(8.9883804321289E-5)
- Output for 7.2.12
- NULL
int(1)
int(1)
float(7.9870223999023E-5)
- Output for 7.2.11
- NULL
int(1)
int(1)
float(0.00010013580322266)
- Output for 7.2.9
- NULL
int(1)
int(1)
float(8.1062316894531E-5)
- Output for 7.0.20, 7.2.8
- NULL
int(1)
int(1)
float(8.082389831543E-5)
- Output for 7.2.7
- NULL
int(1)
int(1)
float(7.3909759521484E-5)
- Output for 7.2.6
- NULL
int(1)
int(1)
float(8.392333984375E-5)
- Output for 7.1.7, 7.2.5
- NULL
int(1)
int(1)
float(7.7962875366211E-5)
- Output for 7.0.0, 7.2.4
- NULL
int(1)
int(1)
float(7.2956085205078E-5)
- Output for 7.2.3
- NULL
int(1)
int(1)
float(7.6055526733398E-5)
- Output for 7.2.2
- NULL
int(1)
int(1)
float(7.8916549682617E-5)
- Output for 7.2.1
- NULL
int(1)
int(1)
float(8.2969665527344E-5)
- Output for 7.1.25
- NULL
int(1)
int(1)
float(9.3936920166016E-5)
- Output for 7.1.5
- NULL
int(1)
int(1)
float(8.702278137207E-5)
- Output for 7.1.0
- NULL
int(1)
int(1)
float(6.5088272094727E-5)
- Output for 7.0.14
- NULL
int(1)
int(1)
float(5.0067901611328E-5)
- Output for 7.0.6
- NULL
int(1)
int(1)
float(6.9141387939453E-5)
- Output for 7.0.5
- NULL
int(1)
int(1)
float(6.2942504882812E-5)
- Output for 7.0.4
- NULL
int(1)
int(1)
float(6.6041946411133E-5)
- Output for 7.0.3
- NULL
int(1)
int(1)
float(6.7949295043945E-5)
- Output for 7.0.2
- NULL
int(1)
int(1)
float(7.1048736572266E-5)
- Output for 7.0.1
- NULL
int(1)
int(1)
float(7.0095062255859E-5)
- Output for 5.6.28
- NULL
int(1)
int(1)
float(-0.00030303001403809)
- Output for 5.3.1, 5.3.3, 5.4.1 - 5.4.3, 5.4.7, 5.4.45, 5.6.21
- NULL
int(1)
int(1)
float(0.00039005279541016)
- Output for 5.6.20
- NULL
int(1)
int(1)
float(0.0003509521484375)
- Output for 5.6.19
- NULL
int(1)
int(1)
float(0.00034689903259277)
- Output for 5.5.32, 5.6.18
- NULL
int(1)
int(1)
float(0.00034809112548828)
- Output for 5.6.17
- NULL
int(1)
int(1)
float(0.00040388107299805)
- Output for 5.6.16
- NULL
int(1)
int(1)
float(0.00038790702819824)
- Output for 5.6.15
- NULL
int(1)
int(1)
float(0.00036096572875977)
- Output for 5.6.14
- NULL
int(1)
int(1)
float(0.00049495697021484)
- Output for 5.4.8, 5.5.26, 5.6.13
- NULL
int(1)
int(1)
float(0.00039100646972656)
- Output for 5.6.12
- NULL
int(1)
int(1)
float(0.00034999847412109)
- Output for 5.4.19, 5.5.8 - 5.5.9, 5.6.11
- NULL
int(1)
int(1)
float(0.0003659725189209)
- Output for 5.6.10
- NULL
int(1)
int(1)
float(0.00037693977355957)
- Output for 5.4.16, 5.6.9
- NULL
int(1)
int(1)
float(0.00036907196044922)
- Output for 5.3.7, 5.6.8
- NULL
int(1)
int(1)
float(0.00039410591125488)
- Output for 5.6.7
- NULL
int(1)
int(1)
float(0.00040102005004883)
- Output for 5.4.11, 5.4.40, 5.5.10, 5.5.14, 5.6.2, 5.6.5 - 5.6.6
- NULL
int(1)
int(1)
float(0.00036501884460449)
- Output for 5.6.4
- NULL
int(1)
int(1)
float(0.00036478042602539)
- Output for 5.4.17, 5.5.13, 5.6.3
- NULL
int(1)
int(1)
float(0.00036716461181641)
- Output for 5.6.1
- NULL
int(1)
int(1)
float(0.00047707557678223)
- Output for 5.6.0
- NULL
int(1)
int(1)
float(0.00037384033203125)
- Output for 5.5.35
- NULL
int(1)
int(1)
float(0.00029897689819336)
- Output for 5.5.34
- NULL
int(1)
int(1)
float(0.00034713745117188)
- Output for 5.5.33
- NULL
int(1)
int(1)
float(0.00034785270690918)
- Output for 5.4.27, 5.5.24, 5.5.31
- NULL
int(1)
int(1)
float(0.00036406517028809)
- Output for 5.5.30
- NULL
int(1)
int(1)
float(0.00034904479980469)
- Output for 5.4.25, 5.5.29
- NULL
int(1)
int(1)
float(0.00036811828613281)
- Output for 5.5.28
- NULL
int(1)
int(1)
float(0.00037598609924316)
- Output for 5.4.31, 5.5.27
- NULL
int(1)
int(1)
float(0.00039505958557129)
- Output for 5.5.25
- NULL
int(1)
int(1)
float(0.00038981437683105)
- Output for 5.4.15, 5.5.20, 5.5.22 - 5.5.23
- NULL
int(1)
int(1)
float(0.00036787986755371)
- Output for 5.5.21
- NULL
int(1)
int(1)
float(0.00035715103149414)
- Output for 5.5.0, 5.5.19
- NULL
int(1)
int(1)
float(0.00037288665771484)
- Output for 5.4.13, 5.5.5, 5.5.18
- NULL
int(1)
int(1)
float(0.00039291381835938)
- Output for 5.5.16
- NULL
int(1)
int(1)
float(0.00039315223693848)
- Output for 5.4.18, 5.5.15
- NULL
int(1)
int(1)
float(0.00036382675170898)
- Output for 5.4.12, 5.4.14, 5.4.21, 5.4.23, 5.4.28, 5.4.38, 5.4.43, 5.5.6 - 5.5.7, 5.5.12
- NULL
int(1)
int(1)
float(0.0003669261932373)
- Output for 5.5.11
- NULL
int(1)
int(1)
float(0.00038814544677734)
- Output for 5.3.6, 5.4.4, 5.4.34, 5.4.36, 5.5.4
- NULL
int(1)
int(1)
float(0.00039196014404297)
- Output for 5.5.3
- NULL
int(1)
int(1)
float(0.00050711631774902)
- Output for 5.5.2
- NULL
int(1)
int(1)
float(0.0003960132598877)
- Output for 5.5.1
- NULL
int(1)
int(1)
float(0.00035190582275391)
- Output for 5.4.44
- NULL
int(1)
int(1)
float(0.00035905838012695)
- Output for 5.4.37, 5.4.42
- NULL
int(1)
int(1)
float(0.00036287307739258)
- Output for 5.4.26, 5.4.41
- NULL
int(1)
int(1)
float(0.00037002563476562)
- Output for 5.4.39
- NULL
int(1)
int(1)
float(0.00044083595275879)
- Output for 5.4.35
- NULL
int(1)
int(1)
float(0.00040411949157715)
- Output for 5.4.32
- NULL
int(1)
int(1)
float(0.00057291984558105)
- Output for 5.4.30
- NULL
int(1)
int(1)
float(0.00036191940307617)
- Output for 5.4.29
- NULL
int(1)
int(1)
float(0.00038480758666992)
- Output for 5.4.24
- NULL
int(1)
int(1)
float(0.00036311149597168)
- Output for 5.4.22
- NULL
int(1)
int(1)
float(0.00036215782165527)
- Output for 5.4.20
- NULL
int(1)
int(1)
float(0.00037884712219238)
- Output for 5.4.10
- NULL
int(1)
int(1)
float(0.00039792060852051)
- Output for 5.4.0, 5.4.9
- NULL
int(1)
int(1)
float(0.0003969669342041)
- Output for 5.4.6
- NULL
int(1)
int(1)
float(0.00039386749267578)
- Output for 5.4.5
- NULL
int(1)
int(1)
float(0.00038909912109375)
- Output for 5.3.29
- NULL
int(1)
int(1)
float(0.00046896934509277)
- Output for 5.3.28
- NULL
int(1)
int(1)
float(0.00044012069702148)
- Output for 5.3.27
- NULL
int(1)
int(1)
float(0.00044393539428711)
- Output for 5.3.26
- NULL
int(1)
int(1)
float(0.00043797492980957)
- Output for 5.3.25
- NULL
int(1)
int(1)
float(0.00043916702270508)
- Output for 5.3.24
- NULL
int(1)
int(1)
float(0.0004429817199707)
- Output for 5.3.23
- NULL
int(1)
int(1)
float(0.00044798851013184)
- Output for 5.3.22
- NULL
int(1)
int(1)
float(0.0004730224609375)
- Output for 5.3.21
- NULL
int(1)
int(1)
float(0.00047492980957031)
- Output for 5.3.14, 5.3.20
- NULL
int(1)
int(1)
float(0.00047111511230469)
- Output for 5.3.19
- NULL
int(1)
int(1)
float(0.00047588348388672)
- Output for 5.3.18
- NULL
int(1)
int(1)
float(0.00046181678771973)
- Output for 5.3.17
- NULL
int(1)
int(1)
float(0.00046992301940918)
- Output for 5.3.16
- NULL
int(1)
int(1)
float(0.00046801567077637)
- Output for 5.3.15
- NULL
int(1)
int(1)
float(0.00046491622924805)
- Output for 5.3.13
- NULL
int(1)
int(1)
float(0.00055098533630371)
- Output for 5.3.12
- NULL
int(1)
int(1)
float(0.00046777725219727)
- Output for 5.3.11
- NULL
int(1)
int(1)
float(0.00046515464782715)
- Output for 5.3.10
- NULL
int(1)
int(1)
float(0.00040984153747559)
- Output for 5.3.9
- NULL
int(1)
int(1)
float(0.0004279613494873)
- Output for 5.3.8
- NULL
int(1)
int(1)
float(0.00038886070251465)
- Output for 5.3.5
- NULL
int(1)
int(1)
float(0.00038695335388184)
- Output for 5.3.4
- NULL
int(1)
int(1)
float(0.00040721893310547)
- Output for 5.3.2
- NULL
int(1)
int(1)
float(0.00038504600524902)
- Output for 5.3.0
- NULL
int(1)
int(1)
float(0.00042200088500977)
- Output for 5.2.3 - 5.2.17
- Fatal error: Call to undefined function json_last_error() in /in/0vArA on line 11
Process exited with code 255. - Output for 5.2.0 - 5.2.2
- <br />
<b>Fatal error</b>: Call to undefined function json_last_error() in <b>/in/0vArA</b> on line <b>11</b><br />
Process exited with code 255. - Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6
- <br />
<b>Fatal error</b>: Call to undefined function json_decode() in <b>/in/0vArA</b> on line <b>10</b><br />
Process exited with code 255. - Output for 4.4.5 - 4.4.9
- <br />
<b>Fatal error</b>: Call to undefined function: json_decode() in <b>/in/0vArA</b> on line <b>10</b><br />
Process exited with code 255. - Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.4
- <br />
<b>Fatal error</b>: Call to undefined function: json_decode() in <b>/in/0vArA</b> on line <b>10</b><br />
Process exited with code 255. - Output for 4.3.0 - 4.3.1
- <br />
<b>Fatal error</b>: Call to undefined function: json_decode() in <b>/in/0vArA</b> on line <b>10</b><br />
preferences:
135.92 ms | 401 KiB | 221 Q