3v4l.org

run code in 300+ PHP versions simultaneously
<?php function bla($a, $b) { if ($a < $b) return -1; if ($a == $b) return 0; if ($a > $b) return 1; } $data = json_decode('{ "data": [[64,87,56],[68,76,58],[68,27,73],[74,99,42],[94,74,60],[97,36,79],[7,93,87],[51,69,40],[38,23,33],[57,86,31]] }'); var_dump($data); usort($data->data, 'bla'); var_dump($data);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PRcme
function name:  (null)
number of ops:  16
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'json_decode'
          1        SEND_VAL                                                 '%7B%0A%09++++++++%22data%22%3A+%5B%5B64%2C87%2C56%5D%2C%5B68%2C76%2C58%5D%2C%5B68%2C27%2C73%5D%2C%5B74%2C99%2C42%5D%2C%5B94%2C74%2C60%5D%2C%5B97%2C36%2C79%5D%2C%5B7%2C93%2C87%5D%2C%5B51%2C69%2C40%5D%2C%5B38%2C23%2C33%5D%2C%5B57%2C86%2C31%5D%5D%0A%09++++%7D'
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
   13     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
   15     7        INIT_FCALL                                               'usort'
          8        FETCH_OBJ_W                                      $4      !0, 'data'
          9        SEND_REF                                                 $4
         10        SEND_VAL                                                 'bla'
         11        DO_ICALL                                                 
   17    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Function bla:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 5
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 11
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PRcme
function name:  bla
number of ops:  12
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        IS_SMALLER                                               !0, !1
          3      > JMPZ                                                     ~2, ->5
          4    > > RETURN                                                   -1
    5     5    >   IS_EQUAL                                                 !0, !1
          6      > JMPZ                                                     ~3, ->8
          7    > > RETURN                                                   0
    6     8    >   IS_SMALLER                                               !1, !0
          9      > JMPZ                                                     ~4, ->11
         10    > > RETURN                                                   1
    7    11    > > RETURN                                                   null

End of function bla

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.33 ms | 1396 KiB | 19 Q