3v4l.org

run code in 300+ PHP versions simultaneously
<?php $part = stristr("my home is my castle","my",true); $part2 = stristr("my home is my castle","my); echo "This is my $part\n"; echo "That is $part2\n"; ?>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
5.4.40.0170.04311.97
5.4.30.0270.05011.96
5.4.20.0160.04511.96
5.4.10.0180.04611.96
5.4.00.0190.04511.46
5.3.140.0180.04512.66
5.3.130.0310.06712.66
5.3.120.0190.04612.66
5.3.110.0190.04812.66
5.3.100.0160.04912.12
5.3.90.0180.04512.08
5.3.80.0220.06012.07
5.3.70.0150.05112.08
5.3.60.0170.04812.06
5.3.50.0170.04712.00
5.3.40.0270.05812.00
5.3.30.0180.04911.95
5.3.20.0270.05411.72
5.3.10.0170.03911.69
5.3.00.0170.04211.67

preferences:
139.26 ms | 1394 KiB | 7 Q