3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $serialized = 'a:6:{s:2:"xs";a:5:{s:11:"contentType";s:10:"image/jpeg";s:13:"contentLength";s:4:"1024";s:5:"width";i:100;s:6:"height";i:100;s:4:"path";s:20:"/path/to/extra-small";}s:2:"sm";a:5:{s:11:"contentType";s:10:"image/jpeg";s:13:"contentLength";s:4:"2024";s:5:"width";i:200;s:6:"height";i:200;s:4:"path";s:14:"/path/to/small";}s:2:"md";a:5:{s:11:"contentType";s:10:"image/jpeg";s:13:"contentLength";s:4:"3024";s:5:"width";i:400;s:6:"height";i:400;s:4:"path";s:15:"/path/to/medium";}s:2:"lg";a:5:{s:11:"contentType";s:10:"image/jpeg";s:13:"contentLength";s:4:"4024";s:5:"width";i:800;s:6:"height";i:800;s:4:"path";s:15:"/path/to/medium";}s:2:"xl";a:5:{s:11:"contentType";s:10:"image/jpeg";s:13:"contentLength";s:4:"9024";s:5:"width";i:1200;s:6:"height";i:1200;s:4:"path";s:11:"/path/to/xl";}s:1:"o";a:5:{s:11:"contentType";s:10:"image/jpeg";s:13:"contentLength";s:5:"28160";s:5:"width";i:2300;s:6:"height";i:2300;s:4:"path";s:17:"/path/to/original";}}'; $json = '{"xs":{"contentType":"image\/jpeg","contentLength":"1024","width":100,"height":100,"path":"\/path\/to\/extra-small"},"sm":{"contentType":"image\/jpeg","contentLength":"2024","width":200,"height":200,"path":"\/path\/to\/small"},"md":{"contentType":"image\/jpeg","contentLength":"3024","width":400,"height":400,"path":"\/path\/to\/medium"},"lg":{"contentType":"image\/jpeg","contentLength":"4024","width":800,"height":800,"path":"\/path\/to\/medium"},"xl":{"contentType":"image\/jpeg","contentLength":"9024","width":1200,"height":1200,"path":"\/path\/to\/xl"},"o":{"contentType":"image\/jpeg","contentLength":"28160","width":2300,"height":2300,"path":"\/path\/to\/original"}}'; $start = microtime(true); for ($i = 0; $i<100000; $i++) { $data = unserialize($serialized); //print_r($data); } printf("%.5f\n", microtime(true) - $start); $start = microtime(true); for ($i = 0; $i<100000; $i++) { $decoded = json_decode($json, true); //print_r($decoded); } printf("%.5f\n", microtime(true) - $start);
Output for 7.1.0
0.17221 -0.66546
Output for 7.0.14
-0.28976 -0.59206
Output for 7.0.12
0.14796 0.58620
Output for 7.0.11
-0.29738 0.59432
Output for 7.0.10
0.04599 0.60386
Output for 7.0.9
0.33749 -0.51899
Output for 7.0.8
0.33235 0.59071
Output for 7.0.7
0.33824 -0.40104
Output for 7.0.6
0.04926 0.59177
Output for 7.0.5
0.00590 0.59640
Output for 7.0.4
0.33461 -1.13766
Output for 7.0.3
0.35362 -0.76321
Output for 7.0.2
0.32857 -0.35991
Output for 7.0.1
0.32817 -0.23983
Output for 7.0.0
0.33197 -0.11953
Output for 5.6.28
0.61834 0.80794
Output for 5.6.26
0.57067 0.80745
Output for 5.6.25
0.56233 0.80438
Output for 5.6.24
-0.07949 0.81623
Output for 5.6.23
0.57272 0.82474
Output for 5.6.22
0.57710 0.78244
Output for 5.6.21
0.43469 0.80119
Output for 5.6.20
-0.30845 1.69965
Output for 5.6.19
-0.25977 1.62379
Output for 5.6.18
-0.58386 1.97268
Output for 5.6.17
-0.45346 1.83114
Output for 5.6.16
-0.00008 0.79457
Output for 5.6.15
0.58147 0.80169
Output for 5.6.14
0.32749 0.81528
Output for 5.6.13
0.42374 0.83085
Output for 5.6.12
-0.45508 1.81153
Output for 5.6.11
-0.13995 0.80471
Output for 5.6.10
-0.19450 1.53333
Output for 5.6.9
-0.16090 1.50615
Output for 5.6.8
0.21119 0.81827
Output for 5.6.7
0.55203 0.78910
Output for 5.6.6
0.53829 0.78963
Output for 5.6.5
0.35857 0.79241
Output for 5.6.4
0.53334 0.81345
Output for 5.6.3
-0.10407 0.82129
Output for 5.6.2
0.54093 0.78768
Output for 5.6.1
0.54413 0.78737
Output for 5.6.0
-0.38156 1.73108
Output for 5.5.38
0.26436 0.86858
Output for 5.5.37
-0.53820 1.98350
Output for 5.5.36
-0.21842 1.01239
Output for 5.5.35
0.59013 0.80656
Output for 5.5.34
0.71680 0.88715
Output for 5.5.33
0.56945 0.83173
Output for 5.5.32
0.48122 0.80940
Output for 5.5.31
0.56793 0.80472
Output for 5.5.30
0.55054 0.80419
Output for 5.5.29
0.57548 0.80514
Output for 5.5.28
0.44531 0.81937
Output for 5.5.27
0.56212 0.83101
Output for 5.5.26
0.55261 0.85883
Output for 5.5.25
0.56519 0.82665
Output for 5.5.24
0.20676 0.80192
Output for 5.5.23
0.56350 0.84061
Output for 5.5.22
0.20996 0.83615
Output for 5.5.21
0.59064 0.93139
Output for 5.5.20
0.01640 0.79466
Output for 5.5.19
0.53063 0.80664
Output for 5.5.18
-0.29156 1.63409
Output for 5.5.16
0.53453 0.79063
Output for 5.5.15
0.17645 0.80875
Output for 5.5.14
0.54227 0.81623
Output for 5.5.13
0.18099 0.80750
Output for 5.5.12
0.10429 0.80304
Output for 5.5.11
0.35813 0.79789
Output for 5.5.10
0.22164 0.81480
Output for 5.5.9
0.07765 0.80648
Output for 5.5.8
-0.07131 0.81208
Output for 5.5.7
0.54749 0.80147
Output for 5.5.6
0.53242 0.80357
Output for 5.5.5
-0.37642 1.69550
Output for 5.5.4
0.53327 0.78631
Output for 5.5.3
0.54738 0.80725
Output for 5.5.2
0.54678 0.80312
Output for 5.5.1
0.55970 0.82197
Output for 5.5.0
-0.08700 0.80644
Output for 5.4.45
0.33119 0.80831
Output for 5.4.44
-0.48426 1.79874
Output for 5.4.43
0.55213 0.77161
Output for 5.4.42
-0.24078 1.56706
Output for 5.4.41
0.56136 0.97806
Output for 5.4.40
0.55290 0.75605
Output for 5.4.39
0.28512 0.79923
Output for 5.4.38
0.14840 0.76212
Output for 5.4.37
0.53455 0.75787
Output for 5.4.36
0.16497 0.77009
Output for 5.4.35
0.53475 0.78672
Output for 5.4.34
-0.13126 1.44514
Output for 5.4.32
-0.49317 1.78908
Output for 5.4.31
0.52710 0.77968
Output for 5.4.30
0.12794 0.80849
Output for 5.4.29
0.52078 0.79597
Output for 5.4.28
0.53830 0.76980
Output for 5.4.27
0.55087 0.80826
Output for 5.4.26
0.51625 0.79846
Output for 5.4.25
0.53771 0.75114
Output for 5.4.24
0.53674 0.75712
Output for 5.4.23
0.54054 0.78789
Output for 5.4.22
-0.23228 1.54363
Output for 5.4.21
0.49331 0.80273
Output for 5.4.20
0.32104 0.79039
Output for 5.4.19
0.22538 0.76164
Output for 5.4.18
0.05692 0.77868
Output for 5.4.17
0.54098 0.75569
Output for 5.4.16
0.05503 0.78460
Output for 5.4.15
0.52991 0.78349
Output for 5.4.14
-0.07608 0.89700
Output for 5.4.13
0.53161 0.76697
Output for 5.4.12
0.52798 0.76722
Output for 5.4.11
0.50718 0.78765
Output for 5.4.10
0.51135 0.75128
Output for 5.4.9
0.52118 0.78342
Output for 5.4.8
0.56402 0.80034
Output for 5.4.7
0.52415 0.78246
Output for 5.4.6
0.53575 0.80512
Output for 5.4.5
0.53355 0.76243
Output for 5.4.4
0.71462 0.83876
Output for 5.4.3
0.20253 0.77242
Output for 5.4.2
0.33630 0.75764
Output for 5.4.1
-0.44650 1.75206
Output for 5.4.0
0.45221 0.79817
Output for 5.3.29
0.40973 0.78227
Output for 5.3.28
-0.12335 1.43496
Output for 5.3.27
0.02077 0.82149
Output for 5.3.26
0.67324 0.78406
Output for 5.3.25
-0.09397 0.80764
Output for 5.3.24
0.53796 0.78657
Output for 5.3.23
-0.05286 0.80064
Output for 5.3.22
-0.02822 0.88621
Output for 5.3.21
-0.03007 0.88310
Output for 5.3.20
-0.06714 0.87678
Output for 5.3.19
-0.04269 0.88667
Output for 5.3.18
0.20524 0.89779
Output for 5.3.17
0.25514 0.88661
Output for 5.3.16
0.36153 0.88413
Output for 5.3.15
-0.49952 1.94531
Output for 5.3.14
-0.34741 1.79611
Output for 5.3.13
0.56019 0.89050
Output for 5.3.12
0.55784 0.88258
Output for 5.3.11
0.41225 0.88513
Output for 5.3.10
0.54004 0.88481
Output for 5.3.9
0.51691 0.90479
Output for 5.3.8
-0.33686 1.72656
Output for 5.3.7
0.53645 0.88074
Output for 5.3.6
-0.10989 0.87144
Output for 5.3.5
0.56696 0.88860
Output for 5.3.4
0.42640 0.89323
Output for 5.3.3
0.54470 0.85826
Output for 5.3.2
0.54467 0.87767
Output for 5.3.1
0.33808 0.99489
Output for 5.3.0
0.54729 0.89072
Output for 5.2.17
0.18832 0.89100
Output for 5.2.16
0.54905 0.89979
Output for 5.2.15
-0.45147 1.90084
Output for 5.2.14
-0.22614 0.87926
Output for 5.2.13
-0.01521 0.88941
Output for 5.2.12
0.54664 0.89188
Output for 5.2.11
-0.22045 0.90759
Output for 5.2.10
0.02235 0.89276
Output for 5.2.9
0.53473 0.89232
Output for 5.2.8
0.15600 0.89426
Output for 5.2.7
0.55221 0.93200
Output for 5.2.6
-0.17901 0.90453
Output for 5.2.5
0.30079 0.90680
Output for 5.2.4
0.53769 0.90720
Output for 5.2.3
0.53932 0.87019
Output for 5.2.2
-0.32926 1.73989
Output for 5.2.1
0.54836 0.84343
Output for 5.2.0
-0.22921 1.56046
Output for 5.1.6
0.50282 Fatal error: Call to undefined function json_decode() in /in/k92cq on line 16
Process exited with code 255.
Output for 5.1.5
-0.22049 Fatal error: Call to undefined function json_decode() in /in/k92cq on line 16
Process exited with code 255.
Output for 5.1.4
-0.72148 Fatal error: Call to undefined function json_decode() in /in/k92cq on line 16
Process exited with code 255.
Output for 5.1.3
0.58001 Fatal error: Call to undefined function json_decode() in /in/k92cq on line 16
Process exited with code 255.
Output for 5.1.2
0.16167 Fatal error: Call to undefined function json_decode() in /in/k92cq on line 16
Process exited with code 255.
Output for 5.1.1
0.50364 Fatal error: Call to undefined function json_decode() in /in/k92cq on line 16
Process exited with code 255.
Output for 5.1.0
0.16378 Fatal error: Call to undefined function json_decode() in /in/k92cq on line 16
Process exited with code 255.
Output for 5.0.5
0.56880 Fatal error: Call to undefined function json_decode() in /in/k92cq on line 16
Process exited with code 255.
Output for 5.0.4
-0.19609 Fatal error: Call to undefined function json_decode() in /in/k92cq on line 16
Process exited with code 255.
Output for 5.0.3
0.62554 Fatal error: Call to undefined function json_decode() in /in/k92cq on line 16
Process exited with code 255.
Output for 5.0.2
-0.33873 Fatal error: Call to undefined function json_decode() in /in/k92cq on line 16
Process exited with code 255.
Output for 5.0.1
0.14349 Fatal error: Call to undefined function json_decode() in /in/k92cq on line 16
Process exited with code 255.
Output for 5.0.0
-0.39233 Fatal error: Call to undefined function json_decode() in /in/k92cq on line 16
Process exited with code 255.
Output for 4.4.9
0.46906 Fatal error: Call to undefined function: json_decode() in /in/k92cq on line 16
Process exited with code 255.
Output for 4.4.8
0.58617 Fatal error: Call to undefined function: json_decode() in /in/k92cq on line 16
Process exited with code 255.
Output for 4.4.7
0.60241 Fatal error: Call to undefined function: json_decode() in /in/k92cq on line 16
Process exited with code 255.
Output for 4.4.6
0.16972 Fatal error: Call to undefined function: json_decode() in /in/k92cq on line 16
Process exited with code 255.
Output for 4.4.5
-0.49779 Fatal error: Call to undefined function: json_decode() in /in/k92cq on line 16
Process exited with code 255.
Output for 4.4.4
0.26657 Fatal error: Call to undefined function: json_decode() in /in/k92cq on line 16
Process exited with code 255.
Output for 4.4.3
-0.62410 Fatal error: Call to undefined function: json_decode() in /in/k92cq on line 16
Process exited with code 255.
Output for 4.4.2
-0.51432 Fatal error: Call to undefined function: json_decode() in /in/k92cq on line 16
Process exited with code 255.
Output for 4.4.1
-0.50699 Fatal error: Call to undefined function: json_decode() in /in/k92cq on line 16
Process exited with code 255.
Output for 4.4.0
0.23961 Fatal error: Call to undefined function: json_decode() in /in/k92cq on line 16
Process exited with code 255.
Output for 4.3.11
0.58423 Fatal error: Call to undefined function: json_decode() in /in/k92cq on line 16
Process exited with code 255.
Output for 4.3.10
0.29555 Fatal error: Call to undefined function: json_decode() in /in/k92cq on line 16
Process exited with code 255.
Output for 4.3.9
0.52178 Fatal error: Call to undefined function: json_decode() in /in/k92cq on line 16
Process exited with code 255.
Output for 4.3.8
0.50620 Fatal error: Call to undefined function: json_decode() in /in/k92cq on line 16
Process exited with code 255.
Output for 4.3.7
0.29161 Fatal error: Call to undefined function: json_decode() in /in/k92cq on line 16
Process exited with code 255.
Output for 4.3.6
-0.33381 Fatal error: Call to undefined function: json_decode() in /in/k92cq on line 16
Process exited with code 255.
Output for 4.3.5
0.50886 Fatal error: Call to undefined function: json_decode() in /in/k92cq on line 16
Process exited with code 255.
Output for 4.3.4
0.24122 Fatal error: Call to undefined function: json_decode() in /in/k92cq on line 16
Process exited with code 255.
Output for 4.3.3
-0.46528 Fatal error: Call to undefined function: json_decode() in /in/k92cq on line 16
Process exited with code 255.
Output for 4.3.2
0.54118 Fatal error: Call to undefined function: json_decode() in /in/k92cq on line 16
Process exited with code 255.
Output for 4.3.1
0.21296 Fatal error: Call to undefined function: json_decode() in /in/k92cq on line 16
Output for 4.3.0
-0.41089 Fatal error: Call to undefined function: json_decode() in /in/k92cq on line 16