3v4l.org

run code in 300+ PHP versions simultaneously
<?php $toto = "SIGNY L'ABBAYE"; echo str_replace("'", "\'", ($toto))."\n"; $timestamp = 1397810281; echo "timestamp 1397810281 : ".date("Y-m-d H:i:s", $timestamp)."\n"; $time = time(); echo "time : ".$time."\n"; echo "diff = ".$timestamp-$time."\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qZ5KA
function name:  (null)
number of ops:  27
compiled vars:  !0 = $toto, !1 = $timestamp, !2 = $time
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'SIGNY+L%27ABBAYE'
    5     1        INIT_FCALL                                               'str_replace'
          2        SEND_VAL                                                 '%27'
          3        SEND_VAL                                                 '%5C%27'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6        CONCAT                                           ~5      $4, '%0A'
          7        ECHO                                                     ~5
    6     8        ASSIGN                                                   !1, 1397810281
    7     9        INIT_FCALL                                               'date'
         10        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $7      
         13        CONCAT                                           ~8      'timestamp+1397810281+%3A+', $7
         14        CONCAT                                           ~9      ~8, '%0A'
         15        ECHO                                                     ~9
    8    16        INIT_FCALL                                               'time'
         17        DO_ICALL                                         $10     
         18        ASSIGN                                                   !2, $10
    9    19        CONCAT                                           ~12     'time+%3A+', !2
         20        CONCAT                                           ~13     ~12, '%0A'
         21        ECHO                                                     ~13
   10    22        SUB                                              ~14     !1, !2
         23        CONCAT                                           ~15     'diff+%3D+', ~14
         24        CONCAT                                           ~16     ~15, '%0A'
         25        ECHO                                                     ~16
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.13 ms | 1395 KiB | 19 Q