3v4l.org

run code in 300+ PHP versions simultaneously
<?php <?php $target_days = mktime(0,0,0,12,31,2013);// modify the birth day 12/31/2013 $today = time(); $diff_days = ($target_days - $today); $days = (int)($diff_days/86400); print "Days till next birthday: $days days!"; ?>

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.0080.04712.48
5.4.280.0070.04512.37
5.4.270.0050.04612.37
5.4.260.0060.04912.38
5.4.250.0080.04312.37
5.4.240.0070.04112.37
5.4.230.0100.04312.37
5.4.220.0070.04212.37
5.4.210.0090.04812.37
5.4.200.0100.04112.37
5.4.190.0060.04312.36
5.4.180.0080.03812.36
5.4.170.0140.04312.37
5.4.160.0070.04312.36
5.4.150.0110.04512.36
5.4.140.0050.04912.05
5.4.130.0070.04112.04
5.4.120.0060.04312.00
5.4.110.0130.03912.00
5.4.100.0100.03712.00
5.4.90.0110.03912.00
5.4.80.0110.04111.99
5.4.70.0040.04011.99
5.4.60.0080.03711.99
5.4.50.0100.04111.99
5.4.40.0110.04511.98
5.4.30.0070.04411.97
5.4.20.0090.04211.97
5.4.10.0050.04211.97
5.4.00.0080.04911.47
5.3.280.0070.04512.70
5.3.270.0100.04512.72
5.3.260.0050.05312.72
5.3.250.0100.04112.72
5.3.240.0090.04312.72
5.3.230.0100.04312.71
5.3.220.0090.03912.68
5.3.210.0080.04612.68
5.3.200.0070.04512.68
5.3.190.0050.04712.68
5.3.180.0050.04712.67
5.3.170.0060.05012.67
5.3.160.0090.04312.67
5.3.150.0070.04612.67
5.3.140.0100.03912.66
5.3.130.0050.04312.66
5.3.120.0130.03812.66
5.3.110.0110.04112.66
5.3.100.0090.04912.12
5.3.90.0100.05212.08
5.3.80.0100.05412.08
5.3.70.0100.06612.08
5.3.60.0090.04212.06
5.3.50.0100.03912.00
5.3.40.0070.03912.00
5.3.30.0080.03811.95
5.3.20.0070.04111.73
5.3.10.0080.04311.70
5.3.00.0070.04711.68
5.2.170.0070.0439.18
5.2.160.0070.0429.18
5.2.150.0070.0509.18
5.2.140.0080.0569.18
5.2.130.0080.0439.14
5.2.120.0100.0429.13
5.2.110.0080.0379.15
5.2.100.0070.0369.14
5.2.90.0080.0399.14
5.2.80.0080.0309.14
5.2.70.0080.0359.14
5.2.60.0080.0439.09
5.2.50.0040.0389.05
5.2.40.0050.0329.03
5.2.30.0080.0359.01
5.2.20.0110.0309.01
5.2.10.0070.0388.93
5.2.00.0070.0328.78
5.1.60.0040.0298.07
5.1.50.0060.0298.06
5.1.40.0070.0308.05
5.1.30.0050.0368.39
5.1.20.0070.0428.42
5.1.10.0050.0328.14
5.1.00.0050.0308.14
5.0.50.0070.0316.62
5.0.40.0040.0256.48
5.0.30.0040.0396.29
5.0.20.0040.0256.27
5.0.10.0070.0306.24
5.0.00.0080.0436.23
4.4.90.0050.0254.78
4.4.80.0050.0214.75
4.4.70.0050.0214.76
4.4.60.0050.0174.75
4.4.50.0090.0234.77
4.4.40.0040.0324.71
4.4.30.0030.0204.76
4.4.20.0020.0204.85
4.4.10.0030.0204.85
4.4.00.0040.0304.76
4.3.110.0040.0204.67
4.3.100.0040.0224.66
4.3.90.0040.0224.64
4.3.80.0020.0364.59
4.3.70.0050.0184.63
4.3.60.0040.0204.63
4.3.50.0040.0164.62
4.3.40.0050.0254.53
4.3.30.0030.0213.28
4.3.20.0020.0183.26
4.3.10.0040.0163.22
4.3.00.0070.0178.14

preferences:
141.89 ms | 1394 KiB | 7 Q