3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string1 = "A man, a plan, a canal, Panama"; $string2 = "beat, rubbber, cockpit"; function is_palindrome($string) { return $string == strrev($string); return $palindrome; echo "Word is Palindrom " ; else echo "Word is not palindrom" ; } ?>

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.190.0180.04812.39
5.4.180.0210.04112.39
5.4.170.0380.11512.40
5.4.160.0400.08512.40
5.4.150.0230.04212.40
5.4.140.0190.04312.09
5.4.130.0170.04512.07
5.4.120.0150.04612.04
5.4.110.0270.09412.03
5.4.100.0200.04512.03
5.4.90.0210.04212.03
5.4.80.0260.06412.03
5.4.70.0180.04012.02
5.4.60.0440.08612.03
5.4.50.0190.04112.02
5.4.40.0220.04112.01
5.4.30.0230.04712.01
5.4.20.0190.04712.00
5.4.10.0260.09412.00
5.4.00.0320.08711.50
5.3.270.0230.03912.72
5.3.260.0160.04812.72
5.3.250.0230.04112.72
5.3.240.0160.04512.72
5.3.230.0160.05112.71
5.3.220.0360.09812.68
5.3.210.0210.04312.68
5.3.200.0380.08612.68
5.3.190.0150.04812.68
5.3.180.0150.04512.67
5.3.170.0220.07012.66
5.3.160.0170.04812.68
5.3.150.0150.04812.67
5.3.140.0140.04612.66
5.3.130.0240.03712.66
5.3.120.0380.09012.66
5.3.110.0160.05012.66
5.3.100.0280.09212.12
5.3.90.0260.09312.09
5.3.80.0240.09412.09
5.3.70.0240.09512.09
5.3.60.0390.08112.07
5.3.50.0430.08012.02
5.3.40.0210.04012.02
5.3.30.0290.06011.99
5.3.20.0120.04611.77
5.3.10.0220.03411.73
5.3.00.0140.04211.71

preferences:
142.77 ms | 939 KiB | 8 Q