3v4l.org

run code in 300+ PHP versions simultaneously
<?php $reflector = new \ReflectionExtension('intl'); ob_start(); $reflector->info(); $output = ob_get_clean(); preg_match('/^ICU version => (.*)$/m', $output, $matches); print_r($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7bJlV
function name:  (null)
number of ops:  20
compiled vars:  !0 = $reflector, !1 = $output, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'ReflectionExtension'
          1        SEND_VAL_EX                                              'intl'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $3
    5     4        INIT_FCALL                                               'ob_start'
          5        DO_ICALL                                                 
    6     6        INIT_METHOD_CALL                                         !0, 'info'
          7        DO_FCALL                                      0          
    7     8        INIT_FCALL                                               'ob_get_clean'
          9        DO_ICALL                                         $8      
         10        ASSIGN                                                   !1, $8
    9    11        INIT_FCALL                                               'preg_match'
         12        SEND_VAL                                                 '%2F%5EICU+version+%3D%3E+%28.%2A%29%24%2Fm'
         13        SEND_VAR                                                 !1
         14        SEND_REF                                                 !2
         15        DO_ICALL                                                 
   11    16        INIT_FCALL                                               'print_r'
         17        SEND_VAR                                                 !2
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.57 ms | 1395 KiB | 21 Q