3v4l.org

run code in 300+ PHP versions simultaneously
<?php $argv[1] = "PDO,FETCH_CLASSTYPE"; ?> <?=constant(explode(',',$argv[1])[0]."::".explode(',',$argv[1])[1])==262144?"Hello, world ":a;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 23
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Gf7XM
function name:  (null)
number of ops:  27
compiled vars:  !0 = $argv
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ASSIGN_DIM                                               !0, 1
          1        OP_DATA                                                  'PDO%2CFETCH_CLASSTYPE'
    2     2        INIT_FCALL                                               'constant'
          3        INIT_FCALL                                               'explode'
          4        SEND_VAL                                                 '%2C'
          5        FETCH_DIM_R                                      ~2      !0, 1
          6        SEND_VAL                                                 ~2
          7        DO_ICALL                                         $3      
          8        FETCH_DIM_R                                      ~4      $3, 0
          9        CONCAT                                           ~5      ~4, '%3A%3A'
         10        INIT_FCALL                                               'explode'
         11        SEND_VAL                                                 '%2C'
         12        FETCH_DIM_R                                      ~6      !0, 1
         13        SEND_VAL                                                 ~6
         14        DO_ICALL                                         $7      
         15        FETCH_DIM_R                                      ~8      $7, 1
         16        CONCAT                                           ~9      ~5, ~8
         17        SEND_VAL                                                 ~9
         18        DO_ICALL                                         $10     
         19        IS_EQUAL                                                 $10, 262144
         20      > JMPZ                                                     ~11, ->23
         21    >   QM_ASSIGN                                        ~12     'Hello%2C+world%0A'
         22      > JMP                                                      ->25
    3    23    >   FETCH_CONSTANT                                   ~13     'a'
         24        QM_ASSIGN                                        ~12     ~13
         25    >   ECHO                                                     ~12
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.16 ms | 1395 KiB | 17 Q