3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php declare(strict_types=1); var_dump(bcpow(123, 2));
based on jXmtg
Output for 7.3.0rc3
Fatal error: Uncaught TypeError: bcpow() expects parameter 1 to be string, int given in /in/E2g8d:5 Stack trace: #0 /in/E2g8d(5): bcpow(123, 2) #1 {main} thrown in /in/E2g8d on line 5
Process exited with code 255.
Output for 7.3.0alpha1 - 7.3.0beta1
Fatal error: Uncaught Error: Call to undefined function bcpow() in /in/E2g8d:5 Stack trace: #0 {main} thrown in /in/E2g8d on line 5
Process exited with code 255.
Output for 7.0.0 - 7.2.6
Fatal error: Uncaught TypeError: bcpow() expects parameter 1 to be string, integer given in /in/E2g8d:5 Stack trace: #0 /in/E2g8d(5): bcpow(123, 2) #1 {main} thrown in /in/E2g8d on line 5
Process exited with code 255.
Output for hhvm-3.15.4
Fatal error: Uncaught TypeError: Argument 1 passed to bcpow() must be an instance of string, int given in /in/E2g8d:5 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.6.0 - 5.6.30
Warning: Unsupported declare 'strict_types' in /in/E2g8d on line 3 string(5) "15129"