3v4l.org

run code in 300+ PHP versions simultaneously
<?php $transport = " Koszt: 283,04 zł "; preg_match('/(\d+),(\d*)/', $transport, $transport); var_dump(filter_var($transport[1] . '.' . $transport[2], FILTER_VALIDATE_FLOAT));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tS33G
function name:  (null)
number of ops:  18
compiled vars:  !0 = $transport
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '+Koszt%3A+283%2C04+z%C5%82+'
    3     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%28%5Cd%2B%29%2C%28%5Cd%2A%29%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !0
          5        DO_ICALL                                                 
    4     6        INIT_FCALL                                               'var_dump'
          7        INIT_FCALL                                               'filter_var'
          8        FETCH_DIM_R                                      ~3      !0, 1
          9        CONCAT                                           ~4      ~3, '.'
         10        FETCH_DIM_R                                      ~5      !0, 2
         11        CONCAT                                           ~6      ~4, ~5
         12        SEND_VAL                                                 ~6
         13        SEND_VAL                                                 259
         14        DO_ICALL                                         $7      
         15        SEND_VAR                                                 $7
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.12 ms | 1394 KiB | 19 Q