3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ['CATS','DOGS']; if(in_array(0, $array) === true){ echo "found zero!\n"; } var_dump(DateTime::ISO8601,DateTime::ATOM,date(DateTime::ISO8601,0),date(DateTime::ATOM,0));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/B0Jqh
function name:  (null)
number of ops:  23
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'in_array'
          2        SEND_VAL                                                 0
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        TYPE_CHECK                                    8          $2
          6      > JMPZ                                                     ~3, ->8
    5     7    >   ECHO                                                     'found+zero%21%0A'
    7     8    >   INIT_FCALL                                               'var_dump'
          9        SEND_VAL                                                 'Y-m-d%5CTH%3Ai%3AsO'
         10        SEND_VAL                                                 'Y-m-d%5CTH%3Ai%3AsP'
         11        INIT_FCALL                                               'date'
         12        SEND_VAL                                                 'Y-m-d%5CTH%3Ai%3AsO'
         13        SEND_VAL                                                 0
         14        DO_ICALL                                         $4      
         15        SEND_VAR                                                 $4
         16        INIT_FCALL                                               'date'
         17        SEND_VAL                                                 'Y-m-d%5CTH%3Ai%3AsP'
         18        SEND_VAL                                                 0
         19        DO_ICALL                                         $5      
         20        SEND_VAR                                                 $5
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.13 ms | 1395 KiB | 19 Q