3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [1,2,3,4,2,2,4,2,42,3,25,5,25,5,35,23,5,2,35,5,4,4,54,45,45,4,5,74,3,54,6,3,5,7,8,4,3,6,67,34,67]; $t = microtime(); rsort($arr); if ($arr[2] > 50) {echo 'true';} echo microtime() -$t;
Finding entry points
Branch analysis from position: 0
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
filename:       /in/cgbM6
function name:  (null)
number of ops:  16
compiled vars:  !0 = $arr, !1 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, <array>
    7     1        INIT_FCALL                                               'microtime'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !1, $3
    8     4        INIT_FCALL                                               'rsort'
          5        SEND_REF                                                 !0
          6        DO_ICALL                                                 
    9     7        FETCH_DIM_R                                      ~6      !0, 2
          8        IS_SMALLER                                               50, ~6
          9      > JMPZ                                                     ~7, ->11
         10    >   ECHO                                                     'true'
   10    11    >   INIT_FCALL                                               'microtime'
         12        DO_ICALL                                         $8      
         13        SUB                                              ~9      $8, !1
         14        ECHO                                                     ~9
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.96 ms | 1394 KiB | 17 Q