3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date=date_create("2013-03-15"); date_sub($date,40 days); echo date_format($date,"Y-m-d"); ?>

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.0050.04012.49
5.4.280.0070.04412.36
5.4.270.0060.04312.36
5.4.260.0050.04312.36
5.4.250.0040.04312.36
5.4.240.0080.04112.36
5.4.230.0040.04212.36
5.4.220.0110.05412.36
5.4.210.0040.04712.36
5.4.200.0100.03912.36
5.4.190.0070.04812.35
5.4.180.0070.04212.35
5.4.170.0040.04212.36
5.4.160.0080.04412.36
5.4.150.0090.03612.35
5.4.140.0080.03912.04
5.4.130.0070.05712.02
5.4.120.0070.05411.99
5.4.110.0090.03711.98
5.4.100.0090.03411.98
5.4.90.0110.05211.99
5.4.80.0140.05711.98
5.4.70.0090.03511.98
5.4.60.0110.03311.98
5.4.50.0050.04611.98
5.4.40.0120.05311.97
5.4.30.0100.04111.96
5.4.20.0090.04111.96
5.4.10.0080.04311.96
5.4.00.0080.04511.46
5.3.280.0140.05512.70
5.3.270.0090.04212.73
5.3.260.0100.04112.72
5.3.250.0080.04012.72
5.3.240.0080.04012.72
5.3.230.0080.04112.71
5.3.220.0090.03812.68
5.3.210.0090.03912.68
5.3.200.0080.03912.68
5.3.190.0060.04012.68
5.3.180.0070.03812.67
5.3.170.0050.04012.67
5.3.160.0060.03912.68
5.3.150.0070.03912.68
5.3.140.0090.03912.66
5.3.130.0120.04812.66
5.3.120.0100.05012.66
5.3.110.0090.05612.66
5.3.100.0120.04912.12
5.3.90.0110.05312.08
5.3.80.0050.05412.07
5.3.70.0090.04212.08
5.3.60.0070.04212.06
5.3.50.0140.03412.00
5.3.40.0080.04012.00
5.3.30.0050.04011.94
5.3.20.0130.03611.70
5.3.10.0090.04711.67
5.3.00.0120.04211.66
5.2.170.0130.0289.15
5.2.160.0050.0349.15
5.2.150.0100.0339.15
5.2.140.0080.0299.15
5.2.130.0060.0309.11
5.2.120.0100.0279.11
5.2.110.0060.0319.11
5.2.100.0070.0329.12
5.2.90.0040.0349.11
5.2.80.0120.0319.11
5.2.70.0090.0439.11
5.2.60.0080.0319.06
5.2.50.0070.0369.03
5.2.40.0060.0299.00
5.2.30.0080.0298.98
5.2.20.0140.0338.97
5.2.10.0080.0318.90
5.2.00.0070.0318.76
5.1.60.0090.0318.05
5.1.50.0090.0248.05
5.1.40.0180.0328.03
5.1.30.0060.0398.38
5.1.20.0070.0418.40
5.1.10.0160.0368.13
5.1.00.0090.0248.13
5.0.50.0050.0226.60
5.0.40.0050.0216.46
5.0.30.0050.0336.27
5.0.20.0100.0206.25
5.0.10.0040.0296.23
5.0.00.0060.0326.21
4.4.90.0030.0204.78
4.4.80.0070.0124.75
4.4.70.0030.0174.75
4.4.60.0010.0184.75
4.4.50.0050.0144.77
4.4.40.0030.0264.70
4.4.30.0040.0154.76
4.4.20.0040.0184.84
4.4.10.0080.0144.85
4.4.00.0050.0244.76
4.3.110.0030.0184.67
4.3.100.0030.0174.67
4.3.90.0050.0144.64
4.3.80.0040.0294.59
4.3.70.0080.0174.63
4.3.60.0060.0134.62
4.3.50.0050.0144.63
4.3.40.0060.0224.54
4.3.30.0040.0153.28
4.3.20.0050.0193.26
4.3.10.0020.0173.22
4.3.00.0000.01310.30

preferences:
134.57 ms | 1394 KiB | 7 Q