3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "Lorem Ipsum %final_walk_through_date% is simply dummy text of the printing and typesetting industry. %buyer_full_name% Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum %buying_side_commission_percent%. %escrow_officer_first_name% and %ccrs_date%."; $arr = explode("%", $str . " "); $newArr = array_filter($arr, function($v){ If(strpos($v, " ") === false) return $v; }); var_dump($newArr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/909Zd
function name:  (null)
number of ops:  17
compiled vars:  !0 = $str, !1 = $arr, !2 = $newArr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Lorem+Ipsum+%25final_walk_through_date%25+is+simply+dummy+text+of+the+printing+and+typesetting+industry.+%25buyer_full_name%25+Lorem+Ipsum+has+been+the+industry%27s+standard+dummy+text+ever+since+the+1500s%2C+when+an+unknown+printer+took+a+galley+of+type+and+scrambled+it+to+make+a+type+specimen+book.+It+has+survived+not+only+five+centuries%2C+but+also+the+leap+into+electronic+typesetting%2C+remaining+essentially+unchanged.+It+was+popularised+in+the+1960s+with+the+release+of+Letraset+sheets+containing+Lorem+Ipsum+passages%2C+and+more+recently+with+desktop+publishing+software+like+Aldus+PageMaker+including+versions+of+Lorem+Ipsum+%25buying_side_commission_percent%25.+%25escrow_officer_first_name%25+and+%25ccrs_date%25.'
    4     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%25'
          3        CONCAT                                           ~4      !0, '+'
          4        SEND_VAL                                                 ~4
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !1, $5
    5     7        INIT_FCALL                                               'array_filter'
          8        SEND_VAR                                                 !1
          9        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F909Zd%3A5%240'
    7    10        SEND_VAL                                                 ~7
         11        DO_ICALL                                         $8      
    5    12        ASSIGN                                                   !2, $8
    9    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F909Zd%3A5%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/909Zd
function name:  {closure}
number of ops:  9
compiled vars:  !0 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        INIT_FCALL                                               'strpos'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '+'
          4        DO_ICALL                                         $1      
          5        TYPE_CHECK                                    4          $1
          6      > JMPZ                                                     ~2, ->8
          7    > > RETURN                                                   !0
    7     8    > > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F909Zd%3A5%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.67 ms | 1401 KiB | 21 Q