3v4l.org

run code in 300+ PHP versions simultaneously
<?php $total_width = 1500; $resolutions = [100, 50, 10, 1000]; rsort($resolutions); if ($total_width > $resolutions[0]){ //true foreach($resolutions as $break_point){ if ($total_width <= $break_point){ echo "this will never happen"; } }

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.300.0040.04512.47
5.4.290.0070.05412.46
5.4.280.0130.05812.36
5.4.270.0080.04612.36
5.4.260.0090.04712.36
5.4.250.0070.04512.36
5.4.240.0090.04412.36
5.4.230.0170.09312.36
5.4.220.0080.04812.36
5.4.210.0140.07712.36
5.4.200.0090.06212.36
5.4.190.0130.04412.35
5.4.180.0280.09012.35
5.4.170.0100.06012.36
5.4.160.0090.07712.36
5.4.150.0160.09112.35
5.4.140.0210.09112.04
5.4.130.0220.07612.03
5.4.120.0140.05511.99
5.4.110.0070.05711.99
5.4.100.0090.05611.99
5.4.90.0100.05611.98
5.4.80.0150.05011.98
5.4.70.0100.05311.98
5.4.60.0140.07111.98
5.4.50.0090.06611.98
5.4.40.0090.05311.96
5.4.30.0060.05211.97
5.4.20.0070.05411.96
5.4.10.0120.05311.96
5.4.00.0100.06111.46
5.3.280.0140.07312.71
5.3.270.0130.04712.73
5.3.260.0130.05512.72
5.3.250.0310.05412.72
5.3.240.0170.04312.72
5.3.230.0130.05712.71
5.3.220.0140.05212.68
5.3.210.0090.06012.68
5.3.200.0210.08412.68
5.3.190.0090.04712.68
5.3.180.0080.03912.67
5.3.170.0060.04112.67
5.3.160.0120.04112.68
5.3.150.0060.04312.67
5.3.140.0150.05512.66
5.3.130.0120.05212.66
5.3.120.0100.05412.66
5.3.110.0060.06112.66
5.3.100.0110.04712.12
5.3.90.0140.04612.08
5.3.80.0120.06712.07
5.3.70.0260.05012.07
5.3.60.0270.04212.07
5.3.50.0110.04512.00
5.3.40.0170.03712.00
5.3.30.0120.04311.95
5.3.20.0120.03611.73
5.3.10.0080.04111.70
5.3.00.0100.04711.68

preferences:
138.91 ms | 1394 KiB | 7 Q