3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(json_validate("null")); var_dump(json_validate("false")); var_dump(json_validate("true")); var_dump(json_validate("")); var_dump(json_decode("null", JSON_THROW_ON_ERROR)); var_dump(json_decode("false", JSON_THROW_ON_ERROR)); var_dump(json_decode("true", JSON_THROW_ON_ERROR)); var_dump(json_decode("", JSON_THROW_ON_ERROR));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Xm2bV
function name:  (null)
number of ops:  53
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'json_validate'
          2        SEND_VAL                                                 'null'
          3        DO_ICALL                                         $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
    4     6        INIT_FCALL                                               'var_dump'
          7        INIT_FCALL                                               'json_validate'
          8        SEND_VAL                                                 'false'
          9        DO_ICALL                                         $2      
         10        SEND_VAR                                                 $2
         11        DO_ICALL                                                 
    5    12        INIT_FCALL                                               'var_dump'
         13        INIT_FCALL                                               'json_validate'
         14        SEND_VAL                                                 'true'
         15        DO_ICALL                                         $4      
         16        SEND_VAR                                                 $4
         17        DO_ICALL                                                 
    6    18        INIT_FCALL                                               'var_dump'
         19        INIT_FCALL                                               'json_validate'
         20        SEND_VAL                                                 ''
         21        DO_ICALL                                         $6      
         22        SEND_VAR                                                 $6
         23        DO_ICALL                                                 
    8    24        INIT_FCALL                                               'var_dump'
         25        INIT_FCALL                                               'json_decode'
         26        SEND_VAL                                                 'null'
         27        SEND_VAL                                                 4194304
         28        DO_ICALL                                         $8      
         29        SEND_VAR                                                 $8
         30        DO_ICALL                                                 
    9    31        INIT_FCALL                                               'var_dump'
         32        INIT_FCALL                                               'json_decode'
         33        SEND_VAL                                                 'false'
         34        SEND_VAL                                                 4194304
         35        DO_ICALL                                         $10     
         36        SEND_VAR                                                 $10
         37        DO_ICALL                                                 
   10    38        INIT_FCALL                                               'var_dump'
         39        INIT_FCALL                                               'json_decode'
         40        SEND_VAL                                                 'true'
         41        SEND_VAL                                                 4194304
         42        DO_ICALL                                         $12     
         43        SEND_VAR                                                 $12
         44        DO_ICALL                                                 
   11    45        INIT_FCALL                                               'var_dump'
         46        INIT_FCALL                                               'json_decode'
         47        SEND_VAL                                                 ''
         48        SEND_VAL                                                 4194304
         49        DO_ICALL                                         $14     
         50        SEND_VAR                                                 $14
         51        DO_ICALL                                                 
         52      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.7 ms | 1012 KiB | 16 Q