3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $oh_my_sides = 'holy moly im null'; var_dump($oh_my_sides); function foo () { $OH_YEAH = "CANDY"; for( $i = 0; $i < 99; $i++ ) { $OH_YEAH .= $OH_YEAH; } } $oh_my_sides = foo(); var_dump($oh_my_sides);
Output for 7.0.0 - 7.1.0
string(17) "holy moly im null" Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 83886112 bytes) in /in/lnX9C on line 11
Process exited with code 255.
Output for 5.3.29, 5.4.26 - 5.6.28
string(17) "holy moly im null" Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 83886081 bytes) in /in/lnX9C on line 11
Process exited with code 255.
Output for 5.2.1 - 5.3.28, 5.4.0 - 5.4.25
string(17) "holy moly im null" Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 41943041 bytes) in /in/lnX9C on line 11
Process exited with code 255.
Output for 4.3.0 - 5.2.0
string(17) "holy moly im null"
Process exited with code 137.