3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tz = 'europe/paris'; $truc = explode('/',$tz); $tz = ucfirst($truc[0]).'/'.ucfirst($truc[1]); echo "\n"; var_dump(in_array($tz, DateTimeZone::listIdentifiers()));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7ugrR
function name:  (null)
number of ops:  28
compiled vars:  !0 = $tz, !1 = $truc
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'europe%2Fparis'
    3     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%2F'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    4     6        INIT_FCALL                                               'ucfirst'
          7        FETCH_DIM_R                                      ~5      !1, 0
          8        SEND_VAL                                                 ~5
          9        DO_ICALL                                         $6      
         10        CONCAT                                           ~7      $6, '%2F'
         11        INIT_FCALL                                               'ucfirst'
         12        FETCH_DIM_R                                      ~8      !1, 1
         13        SEND_VAL                                                 ~8
         14        DO_ICALL                                         $9      
         15        CONCAT                                           ~10     ~7, $9
         16        ASSIGN                                                   !0, ~10
    5    17        ECHO                                                     '%0A'
    6    18        INIT_FCALL                                               'var_dump'
         19        INIT_FCALL                                               'in_array'
         20        SEND_VAR                                                 !0
         21        INIT_STATIC_METHOD_CALL                                  'DateTimeZone', 'listIdentifiers'
         22        DO_FCALL                                      0  $12     
         23        SEND_VAR                                                 $12
         24        DO_ICALL                                         $13     
         25        SEND_VAR                                                 $13
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.98 ms | 1395 KiB | 21 Q