3v4l.org

run code in 300+ PHP versions simultaneously
<?php $v1 = 5; $v2 = '5-4'; echo (strcmp($v1,$v2) === 0 ? 'they are the same' : 'they aren\'t the same'); echo "\n"; echo (string $v1 == string $v2 ? 'they are the same' : 'they aren\'t the same'); echo "\n"; echo ($v1 === $v2 ? 'they are the same' : 'they aren\'t the same');

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.80.0150.04411.99
5.4.70.0220.05611.98
5.4.60.0140.04311.98
5.4.50.0170.04211.98
5.4.40.0150.04311.97
5.4.30.0160.04311.97
5.4.20.0130.04511.96
5.4.10.0140.04311.97
5.4.00.0150.05211.46
5.3.180.0190.04212.67
5.3.170.0210.03912.67
5.3.160.0160.04512.67
5.3.150.0140.04712.67
5.3.140.0180.05212.66
5.3.130.0170.04512.66
5.3.120.0140.04612.66
5.3.110.0160.05512.66
5.3.100.0180.06312.12
5.3.90.0170.04212.08
5.3.80.0160.04512.08
5.3.70.0160.04712.08
5.3.60.0190.05112.06
5.3.50.0230.05712.00
5.3.40.0210.04912.00
5.3.30.0160.04111.95
5.3.20.0150.04411.72
5.3.10.0180.03811.68
5.3.00.0140.04311.66

preferences:
141.78 ms | 1394 KiB | 7 Q