3v4l.org

run code in 300+ PHP versions simultaneously
<?php for($i = 10000; $i; --$i) { echo abs($i); } for($x = 0; $x < 10000; $x++) { echo abs($x); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 2
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 10
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 10
Branch analysis from position: 17
Branch analysis from position: 10
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 2
Branch analysis from position: 8
Branch analysis from position: 2
filename:       /in/96Ec8
function name:  (null)
number of ops:  18
compiled vars:  !0 = $i, !1 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 10000
          1      > JMP                                                      ->7
    4     2    >   INIT_FCALL                                               'abs'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        ECHO                                                     $3
    3     6        PRE_DEC                                                  !0
          7    > > JMPNZ                                                    !0, ->2
    7     8    >   ASSIGN                                                   !1, 0
          9      > JMP                                                      ->15
    8    10    >   INIT_FCALL                                               'abs'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $6      
         13        ECHO                                                     $6
    7    14        PRE_INC                                                  !1
         15    >   IS_SMALLER                                               !1, 10000
         16      > JMPNZ                                                    ~8, ->10
    9    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.05 ms | 1395 KiB | 15 Q