3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo 'null == false? ', (null == false) ? 'yes' : 'no', '<br />'; echo 'null == 0?', (null == 0) ? 'yes' : 'no', '<br />'; echo 'null == "0"?', (null == "0") ? 'yes' : 'no', '<br />'; echo 'null == $undefined?', (null == $undefined) ? 'yes', 'no' : '<br />'; echo 'null == ""?', (null == "") ? 'yes' : 'no', '<br />'; echo 'false == 0?', (false == 0) ? 'yes', 'no' : '<br />'; echo 'false == "0"?', (false == "0") ? 'yes' : 'no', '<br />'; echo 'false == $undefined?', (false == $undefined) ? 'yes' : 'no', '<br />'; echo 'false == ""?', (false == "") ? 'yes' : 'no', '<br />'; echo '0 == "0"?', (0 == "0") ? 'yes' : 'no', '<br />'; echo '0 == $undefined?', (0 == $undefined) ? 'yes' : 'no', '<br />'; echo '0 == ""?', (0 == "") ? 'yes', 'no' : '<br />'; echo '"0" == $undefined?', ("0" == $undefined) ? 'yes' : 'no', '<br />'; echo '"0" == ""?', ("0" == "") ? 'yes' : 'no', '<br />'; echo '$undefined == ""?', ($undefined == "") ? 'yes' : 'no', '<br />';

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.170.0190.04212.37
5.4.160.0150.04812.36
5.4.150.0270.06812.36
5.4.140.0190.04512.05
5.4.130.0140.04612.03
5.4.120.0300.07411.99
5.4.110.0160.04211.99
5.4.100.0210.06711.99
5.4.90.0240.06611.99
5.4.80.0190.05511.99
5.4.70.0220.06611.99
5.4.60.0160.04111.99
5.4.50.0130.04511.99
5.4.40.0250.06311.98
5.4.30.0180.07011.97
5.4.20.0190.03911.97
5.4.10.0260.06411.97
5.4.00.0150.04511.47
5.3.270.0320.06312.73
5.3.260.0250.06912.72
5.3.250.0260.06812.72
5.3.240.0350.05912.72
5.3.230.0280.06512.71
5.3.220.0140.04712.68
5.3.210.0240.06812.68
5.3.200.0210.07012.68
5.3.190.0140.04912.68
5.3.180.0350.08612.67
5.3.170.0150.04712.67
5.3.160.0180.04512.67
5.3.150.0220.05312.67
5.3.140.0160.04512.66
5.3.130.0260.06712.66
5.3.120.0320.07312.66
5.3.110.0190.04112.66
5.3.100.0160.04612.12
5.3.90.0250.06312.08
5.3.80.0220.06812.07
5.3.70.0170.05212.07
5.3.60.0390.08212.06
5.3.50.0150.04512.00
5.3.40.0250.06912.00
5.3.30.0260.06311.95
5.3.20.0380.08311.73
5.3.10.0290.08911.69
5.3.00.0350.08811.67

preferences:
146.63 ms | 1394 KiB | 7 Q