3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* $a = '0xf'; $b = '15'; $c = 15; var_dump('Vars', $a, $b, $c); var_dump('EQ', $a == $b, $a == $c, $b == $c); */ test('pie', function($a){return $a;}); function test($label, $lambda){ echo $label; foreach(['0xf', '15', 15] AS $k=>$v) { $r = $labda($v); var_export($r); } echo "\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/f84cd
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL_BY_NAME                                       'test'
          1        SEND_VAL_EX                                              'pie'
          2        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Ff84cd%3A12%240'
          3        SEND_VAL_EX                                              ~0
          4        DO_FCALL                                      0          
   22     5      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2Ff84cd%3A12%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/f84cd
function name:  {closure}
number of ops:  3
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
          1      > RETURN                                                   !0
          2*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2Ff84cd%3A12%240

Function test:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 14
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 14
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/f84cd
function name:  test
number of ops:  17
compiled vars:  !0 = $label, !1 = $lambda, !2 = $v, !3 = $k, !4 = $r, !5 = $labda
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   16     2        ECHO                                                     !0
   17     3      > FE_RESET_R                                       $6      <array>, ->14
          4    > > FE_FETCH_R                                       ~7      $6, !2, ->14
          5    >   ASSIGN                                                   !3, ~7
   18     6        INIT_DYNAMIC_CALL                                        !5
          7        SEND_VAR_EX                                              !2
          8        DO_FCALL                                      0  $9      
          9        ASSIGN                                                   !4, $9
   19    10        INIT_FCALL                                               'var_export'
         11        SEND_VAR                                                 !4
         12        DO_ICALL                                                 
   17    13      > JMP                                                      ->4
         14    >   FE_FREE                                                  $6
   21    15        ECHO                                                     '%0A'
   22    16      > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.93 ms | 1396 KiB | 15 Q