3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bool = false; $int = 0; echo 'is ', var_export($bool, true), ' == ', var_export($int, true), ' ? ', var_export($bool == $int), "\n"; $bools = (string)$bool; echo 'is ', var_export($bools, true), ' == ', var_export($bool, true), ' ? ', var_export($bools == $bool), "\n"; $ints = (str)$int; echo 'is ', var_export($ints, true), ' == ', var_export($int, true), ' ? ', var_export($ints == $int), "\n"; echo 'is ', var_export($bools, true), ' == ', var_export($ints, true), ' ? ', var_export($bools == $ints), "\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.5.80.0030.05317.37
5.5.70.0070.07717.20
5.5.60.0070.04717.23
5.5.50.0200.05317.20
5.5.40.0070.05017.32
5.5.30.0030.06317.18
5.5.20.0100.07317.30
5.5.10.0070.04317.21
5.5.00.0130.07017.26
5.4.240.0000.04319.01
5.4.230.0030.05719.27
5.4.220.0200.06319.09
5.4.210.0130.06318.88
5.4.200.0100.04019.27
5.4.190.0100.07319.25
5.4.180.0170.06319.02
5.4.170.0100.05719.05
5.4.160.0130.05719.11
5.4.150.0100.07318.96
5.4.140.0270.05316.35
5.4.130.0100.05316.32
5.4.120.0030.07016.30
5.4.110.0030.04316.35
5.4.100.0070.05016.32
5.4.90.0130.03316.44
5.4.80.0000.04316.34
5.4.70.0070.07716.46
5.4.60.0130.06316.40
5.4.50.0100.05716.42
5.4.40.0070.03316.33
5.4.30.0100.05016.18
5.4.20.0070.07016.46
5.4.10.0100.07016.40
5.4.00.0070.07015.83
5.3.280.0030.06714.57
5.3.270.0170.06014.57
5.3.260.0030.06014.57
5.3.250.0130.07314.69
5.3.240.0070.07714.58
5.3.230.0070.05714.43
5.3.220.0030.08014.43
5.3.210.0030.08314.54
5.3.200.0130.07014.35
5.3.190.0070.03714.54
5.3.180.0070.06714.50
5.3.170.0130.06314.53
5.3.160.0070.05314.50
5.3.150.0070.04014.49
5.3.140.0030.04014.52
5.3.130.0200.05714.48
5.3.120.0070.04014.63
5.3.110.0100.04014.38
5.3.100.0070.07313.90
5.3.90.0100.06013.80
5.3.80.0130.04013.99
5.3.70.0070.06713.96
5.3.60.0170.05313.98
5.3.50.0170.06313.92
5.3.40.0100.06713.72
5.3.30.0100.05713.86
5.3.20.0070.07013.66
5.3.10.0130.06713.73
5.3.00.0030.03713.71

preferences:
137.05 ms | 1394 KiB | 7 Q