3v4l.org

run code in 300+ PHP versions simultaneously
<?php function varDump($var, $label = '', $die = 1) { if (isset($_SERVER['REMOTE_ADDR']) && ! in_array($_SERVER['REMOTE_ADDR'], array('212.56.213.6', '127.0.0.1', '89.28.82.193'))) return ; echo '<strong style="color: #ff2222; font-size: 18px;">' . $label . '</strong>: <pre style="line-height: 18px;">'; print_r($var); echo '</pre>'; if ($die) die(); } varDump(['a'=>'a','b'=>'b']);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WflPN
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'vardump'
          1        SEND_VAL                                                 <array>
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

Function vardump:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 6, Position 2 = 11
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 22
Branch analysis from position: 21
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/WflPN
function name:  varDump
number of ops:  23
compiled vars:  !0 = $var, !1 = $label, !2 = $die
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      ''
          2        RECV_INIT                                        !2      1
    3     3        FETCH_IS                                         ~3      '_SERVER'
          4        ISSET_ISEMPTY_DIM_OBJ                         0  ~4      ~3, 'REMOTE_ADDR'
          5      > JMPZ_EX                                          ~4      ~4, ->11
          6    >   FETCH_R                      global              ~5      '_SERVER'
          7        FETCH_DIM_R                                      ~6      ~5, 'REMOTE_ADDR'
          8        IN_ARRAY                                         ~7      ~6, <array>
          9        BOOL_NOT                                         ~8      ~7
         10        BOOL                                             ~4      ~8
         11    > > JMPZ                                                     ~4, ->13
    4    12    > > RETURN                                                   null
    5    13    >   CONCAT                                           ~9      '%3Cstrong+style%3D%22color%3A+%23ff2222%3B+font-size%3A+18px%3B%22%3E', !1
         14        CONCAT                                           ~10     ~9, '%3C%2Fstrong%3E%3A+%3Cpre+style%3D%22line-height%3A+18px%3B%22%3E'
         15        ECHO                                                     ~10
    6    16        INIT_FCALL                                               'print_r'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                                 
    7    19        ECHO                                                     '%3C%2Fpre%3E'
    8    20      > JMPZ                                                     !2, ->22
    9    21    > > EXIT                                                     
   10    22    > > RETURN                                                   null

End of function vardump

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.68 ms | 1399 KiB | 16 Q