3v4l.org

run code in 300+ PHP versions simultaneously
<?php define("Hi", "Hello"); echo Hi; $cars = array("BMW", "Ferrai", "Audi"); foreach($cars as $value) { echo "$value <br>"; } function add($x = 10 , $y = 15) { $z = $x+$y; return $z; } echo "4 + 3".add(4,3); echo add(); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 13
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/odn3f
function name:  (null)
number of ops:  24
compiled vars:  !0 = $cars, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'Hi'
          2        SEND_VAL                                                 'Hello'
          3        DO_ICALL                                                 
    3     4        FETCH_CONSTANT                                   ~3      'Hi'
          5        ECHO                                                     ~3
    5     6        ASSIGN                                                   !0, <array>
    6     7      > FE_RESET_R                                       $5      !0, ->13
          8    > > FE_FETCH_R                                               $5, !1, ->13
    8     9    >   NOP                                                      
         10        FAST_CONCAT                                      ~6      !1, '+%3Cbr%3E'
         11        ECHO                                                     ~6
    6    12      > JMP                                                      ->8
         13    >   FE_FREE                                                  $5
   17    14        INIT_FCALL                                               'add'
         15        SEND_VAL                                                 4
         16        SEND_VAL                                                 3
         17        DO_FCALL                                      0  $7      
         18        CONCAT                                           ~8      '4+%2B+3', $7
         19        ECHO                                                     ~8
   18    20        INIT_FCALL                                               'add'
         21        DO_FCALL                                      0  $9      
         22        ECHO                                                     $9
   19    23      > RETURN                                                   1

Function add:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/odn3f
function name:  add
number of ops:  6
compiled vars:  !0 = $x, !1 = $y, !2 = $z
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV_INIT                                        !0      10
          1        RECV_INIT                                        !1      15
   13     2        ADD                                              ~3      !0, !1
          3        ASSIGN                                                   !2, ~3
   14     4      > RETURN                                                   !2
   15     5*     > RETURN                                                   null

End of function add

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.41 ms | 1399 KiB | 17 Q