3v4l.org

run code in 300+ PHP versions simultaneously
<?php function addTen($number) { if (time() % 10 === 0) { sleep(5); } return (int) $number + 10; } echo addTen(20);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sD7Ur
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                               'addten'
          1        SEND_VAL                                                 20
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4      > RETURN                                                   1

Function addten:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 9
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/sD7Ur
function name:  addTen
number of ops:  13
compiled vars:  !0 = $number
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    6     1        INIT_FCALL                                               'time'
          2        DO_ICALL                                         $1      
          3        MOD                                              ~2      $1, 10
          4        IS_IDENTICAL                                             ~2, 0
          5      > JMPZ                                                     ~3, ->9
    8     6    >   INIT_FCALL                                               'sleep'
          7        SEND_VAL                                                 5
          8        DO_ICALL                                                 
   10     9    >   CAST                                          4  ~5      !0
         10        ADD                                              ~6      ~5, 10
         11      > RETURN                                                   ~6
   11    12*     > RETURN                                                   null

End of function addten

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.55 ms | 1397 KiB | 18 Q