3v4l.org

run code in 300+ PHP versions simultaneously
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Output for 8.0.9
Total execution time for 5000 iterations for BadActor = 0.277042 milliseconds Total execution time for 5000 iterations for GoodActor = 0.790119 milliseconds Total time difference for 5000 iterations = 0.513077 milliseconds Total time difference for 1 iteration = 1/9,745 millisecond
Output for 7.4.23
Total execution time for 5000 iterations for BadActor = 0.304937 milliseconds Total execution time for 5000 iterations for GoodActor = 0.767946 milliseconds Total time difference for 5000 iterations = 0.463009 milliseconds Total time difference for 1 iteration = 1/10,799 millisecond
Output for 7.3.30
Parse error: syntax error, unexpected 'int' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in /in/HAkhjW on line 8
Process exited with code 255.

preferences:
54.94 ms | 413 KiB | 5 Q