3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pos = strpos('PHP 5.6.10', phpversion()); echo phpversion(); if($pos !== false){ print "<pre>"; $arr = timezone_abbreviations_list(); print_r(array_keys($arr)); die; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 23
Branch analysis from position: 12
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7gQK2
function name:  (null)
number of ops:  24
compiled vars:  !0 = $pos, !1 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'strpos'
          1        SEND_VAL                                                 'PHP+5.6.10'
          2        INIT_FCALL                                               'phpversion'
          3        DO_ICALL                                         $2      
          4        SEND_VAR                                                 $2
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !0, $3
    4     7        INIT_FCALL                                               'phpversion'
          8        DO_ICALL                                         $5      
          9        ECHO                                                     $5
    5    10        TYPE_CHECK                                  1018          !0
         11      > JMPZ                                                     ~6, ->23
    6    12    >   ECHO                                                     '%3Cpre%3E'
    7    13        INIT_FCALL                                               'timezone_abbreviations_list'
         14        DO_ICALL                                         $7      
         15        ASSIGN                                                   !1, $7
    8    16        INIT_FCALL                                               'print_r'
         17        INIT_FCALL                                               'array_keys'
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                         $9      
         20        SEND_VAR                                                 $9
         21        DO_ICALL                                                 
         22      > EXIT                                                     
   10    23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.71 ms | 1395 KiB | 23 Q