3v4l.org

run code in 300+ PHP versions simultaneously
<?php $from_line_no = 5; $to_line_no = 10; $match[1] = 5; $match[4] = 10; assert('$match[1] - $from_line_no == $match[4] - $to_line_no'); assert($match[1] - $from_line_no == $match[4] - $to_line_no); $match[1] = 8; assert('$match[1] - $from_line_no == $match[4] - $to_line_no'); assert($match[1] - $from_line_no == $match[4] - $to_line_no);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XmX5H
function name:  (null)
number of ops:  39
compiled vars:  !0 = $from_line_no, !1 = $to_line_no, !2 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 5
    4     1        ASSIGN                                                   !1, 10
    5     2        ASSIGN_DIM                                               !2, 1
          3        OP_DATA                                                  5
    6     4        ASSIGN_DIM                                               !2, 4
          5        OP_DATA                                                  10
    8     6        ASSERT_CHECK                                             
          7        INIT_FCALL                                               'assert'
          8        SEND_VAL                                                 '%24match%5B1%5D+-+%24from_line_no+%3D%3D+%24match%5B4%5D+-+%24to_line_no'
          9        SEND_VAL                                                 'assert%28%27%24match%5B1%5D+-+%24from_line_no+%3D%3D+%24match%5B4%5D+-+%24to_line_no%27%29'
         10        DO_ICALL                                                 
    9    11        ASSERT_CHECK                                             
         12        INIT_FCALL                                               'assert'
         13        FETCH_DIM_R                                      ~8      !2, 1
         14        SUB                                              ~9      ~8, !0
         15        FETCH_DIM_R                                      ~10     !2, 4
         16        SUB                                              ~11     ~10, !1
         17        IS_EQUAL                                         ~12     ~9, ~11
         18        SEND_VAL                                                 ~12
         19        SEND_VAL                                                 'assert%28%24match%5B1%5D+-+%24from_line_no+%3D%3D+%24match%5B4%5D+-+%24to_line_no%29'
         20        DO_ICALL                                                 
   11    21        ASSIGN_DIM                                               !2, 1
         22        OP_DATA                                                  8
   13    23        ASSERT_CHECK                                             
         24        INIT_FCALL                                               'assert'
         25        SEND_VAL                                                 '%24match%5B1%5D+-+%24from_line_no+%3D%3D+%24match%5B4%5D+-+%24to_line_no'
         26        SEND_VAL                                                 'assert%28%27%24match%5B1%5D+-+%24from_line_no+%3D%3D+%24match%5B4%5D+-+%24to_line_no%27%29'
         27        DO_ICALL                                                 
   14    28        ASSERT_CHECK                                             
         29        INIT_FCALL                                               'assert'
         30        FETCH_DIM_R                                      ~16     !2, 1
         31        SUB                                              ~17     ~16, !0
         32        FETCH_DIM_R                                      ~18     !2, 4
         33        SUB                                              ~19     ~18, !1
         34        IS_EQUAL                                         ~20     ~17, ~19
         35        SEND_VAL                                                 ~20
         36        SEND_VAL                                                 'assert%28%24match%5B1%5D+-+%24from_line_no+%3D%3D+%24match%5B4%5D+-+%24to_line_no%29'
         37        DO_ICALL                                                 
         38      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.79 ms | 1396 KiB | 15 Q