3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = "Functional_98.867"; echo $name = substr($var,0,(strrpos($var,"_"))); echo $average = substr($var,(strrpos($var,"_")+1));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Vi6kb
function name:  (null)
number of ops:  24
compiled vars:  !0 = $var, !1 = $name, !2 = $average
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Functional_98.867'
    4     1        INIT_FCALL                                               'substr'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 0
          4        INIT_FCALL                                               'strrpos'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 '_'
          7        DO_ICALL                                         $4      
          8        SEND_VAR                                                 $4
          9        DO_ICALL                                         $5      
         10        ASSIGN                                           ~6      !1, $5
         11        ECHO                                                     ~6
    5    12        INIT_FCALL                                               'substr'
         13        SEND_VAR                                                 !0
         14        INIT_FCALL                                               'strrpos'
         15        SEND_VAR                                                 !0
         16        SEND_VAL                                                 '_'
         17        DO_ICALL                                         $7      
         18        ADD                                              ~8      $7, 1
         19        SEND_VAL                                                 ~8
         20        DO_ICALL                                         $9      
         21        ASSIGN                                           ~10     !2, $9
         22        ECHO                                                     ~10
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.67 ms | 1395 KiB | 17 Q