3v4l.org

run code in 300+ PHP versions simultaneously
<?php $left = 4; $right = '4'; function it($m,$p){echo "\033[".($p?"32m✔":"31m✘")." It $m\033[0m\n"; if(!$p)$GLOBALS['f']=1;}function done({if(@$GLOBALS['f'])die(1);} it($left == $right, "should compare simple values as equal"); it(! $left === $right, "should not compare with identity between ints and strings"); it($left === (int) $right, "should compare if you typecast a string to int"); it((string) $left === $right, "should compare if you typecast an int to a string");

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.290.0200.07612.52
5.4.280.0140.06112.42
5.4.270.0200.09512.42
5.4.260.0240.04812.41
5.4.250.0330.10112.41
5.4.240.0190.06612.42
5.4.230.0140.06912.41
5.4.220.0220.06812.41
5.4.210.0180.09812.41
5.4.200.0250.05812.41
5.4.190.0180.07212.41
5.4.180.0100.05812.41
5.4.170.0070.06412.41
5.4.160.0320.08712.41
5.4.150.0330.08412.40
5.4.140.0320.08812.09
5.4.130.0240.05912.07
5.4.120.0210.06212.04
5.4.110.0370.05612.04
5.4.100.0160.06712.04
5.4.90.0120.08612.04
5.4.80.0060.04712.04
5.4.70.0290.07812.03
5.4.60.0400.08312.04
5.4.50.0220.06812.03
5.4.40.0260.08112.02
5.4.30.0210.06412.01
5.4.20.0110.04812.01
5.4.10.0100.06012.01
5.4.00.0080.04011.51
5.3.280.0140.04512.71
5.3.270.0130.05312.72
5.3.260.0150.04712.71
5.3.250.0150.08812.72
5.3.240.0180.08512.72
5.3.230.0270.11212.70
5.3.220.0180.07812.68
5.3.210.0140.07612.68
5.3.200.0100.06612.68
5.3.190.0090.05512.68
5.3.180.0150.09412.67
5.3.170.0220.11012.67
5.3.160.0240.10312.67
5.3.150.0320.10112.68
5.3.140.0140.09412.66
5.3.130.0450.12112.65
5.3.120.0160.09912.65
5.3.110.0300.08412.66
5.3.100.0260.07112.13
5.3.90.0140.11512.11
5.3.80.0150.08512.10
5.3.70.0190.07312.10
5.3.60.0330.09612.09
5.3.50.0260.07312.03
5.3.40.0180.09212.03
5.3.30.0110.08811.98
5.3.20.0110.07311.77
5.3.10.0080.05111.73
5.3.00.0160.07011.72

preferences:
138.84 ms | 1394 KiB | 7 Q