3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo strftime("%Y", date_parse( "2015-10-12T19:28:38+0200"));
Output for 8.1.0 - 8.1.28, 8.2.0 - 8.2.19, 8.3.0 - 8.3.7
Deprecated: Function strftime() is deprecated in /in/ft9vL on line 3 Fatal error: Uncaught TypeError: strftime(): Argument #2 ($timestamp) must be of type ?int, array given in /in/ft9vL:3 Stack trace: #0 /in/ft9vL(3): strftime('%Y', Array) #1 {main} thrown in /in/ft9vL on line 3
Process exited with code 255.
Output for 8.0.0 - 8.0.30
Fatal error: Uncaught TypeError: strftime(): Argument #2 ($timestamp) must be of type ?int, array given in /in/ft9vL:3 Stack trace: #0 /in/ft9vL(3): strftime('%Y', Array) #1 {main} thrown in /in/ft9vL on line 3
Process exited with code 255.
Output for 7.3.16 - 7.3.33, 7.4.0 - 7.4.33
Warning: strftime() expects parameter 2 to be int, array given in /in/ft9vL on line 3
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33
Warning: strftime() expects parameter 2 to be integer, array given in /in/ft9vL on line 3
Output for 5.4.2 - 5.4.45, 5.5.24 - 5.5.35, 5.6.8 - 5.6.28
Warning: strftime() expects parameter 2 to be long, array given in /in/ft9vL on line 3

preferences:
179.81 ms | 402 KiB | 228 Q