3v4l.org

run code in 300+ PHP versions simultaneously
<?php function testFunction($argument) { return empty($argument) ? 'all' : strtoupper($argument); } testFunction(''); testFunction('hello');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bhXY5
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'testfunction'
          1        SEND_VAL                                                 ''
          2        DO_FCALL                                      0          
    9     3        INIT_FCALL                                               'testfunction'
          4        SEND_VAL                                                 'hello'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Function testfunction:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bhXY5
function name:  testFunction
number of ops:  11
compiled vars:  !0 = $argument
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        ISSET_ISEMPTY_CV                                         !0
          2      > JMPZ                                                     ~1, ->5
          3    >   QM_ASSIGN                                        ~2      'all'
          4      > JMP                                                      ->9
          5    >   INIT_FCALL                                               'strtoupper'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $3      
          8        QM_ASSIGN                                        ~2      $3
          9    > > RETURN                                                   ~2
    5    10*     > RETURN                                                   null

End of function testfunction

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.5 ms | 1397 KiB | 17 Q