3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = <<<STR Turicum was a Swiss automobile manufactured between 1904 and 1906 in Zurich, 1907 till 1912 in Uster. Turicum is the Latin name of Zurich. The first car made by Martin Fischer was a small single-seater go-kart like vehicle, 140 cm long, with pedal-operated steering and powered by a motorcycle engine. It had chain drive but a second prototype had friction drive. The friction drive consisted of a flat steel disc coupled to the engine which drove a small, leather-covered wheel running at right angles to its surface. The small wheel could be moved across the surface of the large disc, giving an infinitely variable gear ratio. They attracted little public interest. The Swiss industrialist Jakob Heusser was also involved to establish the car manufacturer. STR; $pattern = '%[.] %'; $result = preg_split($pattern, $subject); var_dump($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/q0o0M
function name:  (null)
number of ops:  11
compiled vars:  !0 = $subject, !1 = $pattern, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Turicum+was+a+Swiss+automobile+manufactured+between+1904+and+1906+in+Zurich%2C+1907+till+1912+in+Uster.+Turicum+is+the+Latin+name+of+Zurich.+The+first+car+made+by+Martin+Fischer+was+a+small+single-seater+go-kart+like+vehicle%2C+140+cm+long%2C+with+pedal-operated+steering+and+powered+by+a+motorcycle+engine.+It+had+chain+drive+but+a+second+prototype+had+friction+drive.+The+friction+drive+consisted+of+a+flat+steel+disc+coupled+to+the+engine+which+drove+a+small%2C+leather-covered+wheel+running+at+right+angles+to+its+surface.+The+small+wheel+could+be+moved+across+the+surface+of+the+large+disc%2C+giving+an+infinitely+variable+gear+ratio.+They+attracted+little+public+interest.+The+Swiss+industrialist+Jakob+Heusser+was+also+involved+to+establish+the+car+manufacturer.'
    7     1        ASSIGN                                                   !1, '%25%5B.%5D+%25'
    9     2        INIT_FCALL                                               'preg_split'
          3        SEND_VAR                                                 !1
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !2, $5
   11     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.59 ms | 1460 KiB | 15 Q