3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pizza = 'http://www.tuin.co.uk/images/D/2-10.jpg,http://www.tuin.co.uk/images/D/40.0535-t02-12%20Skov.jpg,http://www.tuin.co.uk/images/D/28mm%20log-04.jpg,http://www.tuin.co.uk/images/D/Skov-log-cabin.jpg,http://www.tuin.co.uk/images/D/Skov-log-cabin-01.jpg,http://www.tuin.co.uk/images/D/Skove-log-cabin.jpg,http://www.tuin.co.uk/images/D/skov-28mm-log-'; $pieces = explode(",", $pizza); echo count($pieces); //foreach ($pieces as $arr) //{ // if (filter_var('http://www.tuin.co.uk/images/D/skov-28mm-log-', FILTER_VALIDATE_URL, FILTER_FLAG_SCHEME_REQUIRED)) { // echo $arr.'<br>'; // } // else echo $arr.'<br><br>'; //} if (filter_var('http://www.tuin.co.uk/images/D/skov-28mm-log-', FILTER_VALIDATE_URL, FILTER_FLAG_SCHEME_REQUIRED)) { echo '<br>'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 16
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/ci7vn
function name:  (null)
number of ops:  17
compiled vars:  !0 = $pizza, !1 = $pieces
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fwww.tuin.co.uk%2Fimages%2FD%2F2-10.jpg%2Chttp%3A%2F%2Fwww.tuin.co.uk%2Fimages%2FD%2F40.0535-t02-12%2520Skov.jpg%2Chttp%3A%2F%2Fwww.tuin.co.uk%2Fimages%2FD%2F28mm%2520log-04.jpg%2Chttp%3A%2F%2Fwww.tuin.co.uk%2Fimages%2FD%2FSkov-log-cabin.jpg%2Chttp%3A%2F%2Fwww.tuin.co.uk%2Fimages%2FD%2FSkov-log-cabin-01.jpg%2Chttp%3A%2F%2Fwww.tuin.co.uk%2Fimages%2FD%2FSkove-log-cabin.jpg%2Chttp%3A%2F%2Fwww.tuin.co.uk%2Fimages%2FD%2Fskov-28mm-log-'
    3     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%2C'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    4     6        COUNT                                            ~5      !1
          7        ECHO                                                     ~5
   12     8        INIT_FCALL                                               'filter_var'
          9        SEND_VAL                                                 'http%3A%2F%2Fwww.tuin.co.uk%2Fimages%2FD%2Fskov-28mm-log-'
         10        SEND_VAL                                                 273
         11        FETCH_CONSTANT                                   ~6      'FILTER_FLAG_SCHEME_REQUIRED'
         12        SEND_VAL                                                 ~6
         13        DO_ICALL                                         $7      
         14      > JMPZ                                                     $7, ->16
   13    15    >   ECHO                                                     '%3Cbr%3E'
   14    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.78 ms | 1433 KiB | 15 Q