3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = new DateTime(); $now->setTime(09,00); $punchIn = new DateTime(); // 10:55 am $punchIn->setTime(11,00); print_r( (((int)$now->diff($punchIn)->format('%H'))*60)+(int)$now->diff($punchIn)->format('%i') ); if ((int)$now->diff($punchIn)->format('%i') < 10) { print_r( 'punchIn'); }

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.6.280.0000.07721.01
5.6.220.0030.05020.52
5.6.210.0070.08020.61
5.6.200.0070.05021.03
5.6.190.0030.06020.97
5.6.180.0030.08720.99
5.6.170.0030.09021.08
5.6.160.0030.08721.04
5.6.150.0030.05321.00
5.6.140.0100.05321.00
5.6.130.0170.07321.00
5.6.120.0100.08021.11
5.6.110.0070.07721.16
5.6.100.0000.09721.06
5.6.90.0030.06021.06
5.6.80.0000.09020.37
5.6.70.0170.06320.40
5.6.60.0030.04320.42
5.6.50.0100.07320.46
5.6.40.0000.06020.29
5.6.30.0100.07720.46
5.6.20.0070.08320.30
5.6.10.0100.03720.31
5.6.00.0100.06020.39
5.5.360.0030.09020.34
5.5.350.0030.05020.32
5.5.340.0070.08720.79
5.5.330.0030.08320.73
5.5.320.0000.05320.83
5.5.310.0070.08320.86
5.5.300.0100.07720.85
5.5.290.0130.06720.89
5.5.280.0030.05720.88
5.5.270.0070.04020.89
5.5.260.0100.08720.88
5.5.250.0170.06720.56
5.5.240.0100.07020.16
5.5.230.0100.09020.14
5.5.220.0030.08320.10
5.5.210.0070.05320.29
5.5.200.0100.07320.25
5.5.190.0030.06320.22
5.5.180.0100.07320.23
5.5.160.0030.04320.17
5.5.150.0030.04320.05
5.5.140.0070.08320.20
5.5.130.0100.07319.98
5.5.120.0030.06020.10
5.5.110.0030.05020.23
5.5.100.0070.05020.11
5.5.90.0200.04320.03
5.5.80.0000.08720.09
5.5.70.0100.08020.16
5.5.60.0030.07720.08
5.5.50.0030.08020.13
5.5.40.0030.08020.09
5.5.30.0100.05320.14
5.5.20.0030.08320.13
5.5.10.0100.08720.06
5.5.00.0170.03720.11
5.4.450.0000.08019.14
5.4.440.0100.05019.27
5.4.430.0030.04719.39
5.4.420.0070.07319.41
5.4.410.0070.04319.32
5.4.400.0100.07719.10
5.4.390.0100.07718.79
5.4.380.0070.04019.23
5.4.370.0030.04718.96
5.4.360.0030.06718.98
5.4.350.0200.06319.23
5.4.340.0070.04019.14
5.4.320.0030.07019.13
5.4.310.0030.04719.03
5.4.300.0100.06719.05
5.4.290.0100.07318.98
5.4.280.0100.06019.05
5.4.270.0130.07319.09
5.4.260.0030.07718.80
5.4.250.0070.07718.89
5.4.240.0070.06719.13
5.4.230.0030.07719.07
5.4.220.0070.06718.95
5.4.210.0000.05019.22
5.4.200.0000.06019.11
5.4.190.0070.07719.11
5.4.180.0030.08319.11
5.4.170.0000.05719.10
5.4.160.0070.08019.02
5.4.150.0030.06719.00
5.4.140.0000.05316.38
5.4.130.0030.05316.33
5.4.120.0070.05316.29
5.4.110.0070.07716.32
5.4.100.0170.02316.46
5.4.90.0000.03716.36
5.4.80.0130.02716.45
5.4.70.0000.04016.31
5.4.60.0000.03716.42
5.4.50.0000.04316.30
5.4.40.0030.03716.43
5.4.30.0070.05016.27
5.4.20.0100.04316.23
5.4.10.0000.05316.22
5.4.00.0000.04715.84
5.3.290.0070.07714.57
5.3.280.0030.05014.59
5.3.270.0170.06714.42
5.3.260.0070.04314.60
5.3.250.0030.06014.55
5.3.240.0070.03714.46
5.3.230.0030.08314.58
5.3.220.0030.04314.52
5.3.210.0000.04014.43
5.3.200.0200.06014.52
5.3.190.0000.04014.54
5.3.180.0030.06314.42
5.3.170.0030.03714.47
5.3.160.0030.03714.51
5.3.150.0070.06014.42
5.3.140.0030.03714.56
5.3.130.0000.05014.54
5.3.120.0030.03714.36
5.3.110.0070.06314.49
5.3.100.0100.05013.85
5.3.90.0030.05313.95
5.3.80.0070.03314.00
5.3.70.0030.03013.99
5.3.60.0000.04013.96
5.3.50.0030.06013.89
5.3.40.0000.06013.80
5.3.30.0030.03313.86
5.3.20.0030.03313.54
5.3.10.0030.03313.60
5.3.00.0030.03713.61
5.2.170.0030.03712.30
5.2.160.0030.02312.30
5.2.150.0030.02712.30
5.2.140.0000.02712.30
5.2.130.0000.05312.30
5.2.120.0000.03312.30
5.2.110.0000.03012.30
5.2.100.0030.03012.30
5.2.90.0000.03312.30
5.2.80.0000.03312.30
5.2.70.0000.02712.30
5.2.60.0070.03012.30
5.2.50.0000.04312.30
5.2.40.0000.02712.30
5.2.30.0030.03712.30
5.2.20.0030.04012.30
5.2.10.0030.05712.30
5.2.00.0000.03312.30
5.1.60.0030.02312.30
5.1.50.0000.02712.30
5.1.40.0000.02712.30
5.1.30.0030.02312.30
5.1.20.0000.02712.30
5.1.10.0030.02312.30
5.1.00.0030.02312.30
5.0.50.0000.01712.30
5.0.40.0000.02012.30
5.0.30.0000.03012.30
5.0.20.0030.01312.30
5.0.10.0000.01712.30
5.0.00.0000.04712.30
4.4.90.0000.01312.30
4.4.80.0000.01312.30
4.4.70.0000.01712.30
4.4.60.0000.01312.30
4.4.50.0000.01312.30
4.4.40.0000.02012.30
4.4.30.0030.03012.30
4.4.20.0000.03712.30
4.4.10.0000.01712.30
4.4.00.0000.02312.30
4.3.110.0000.01312.30
4.3.100.0000.01312.30
4.3.90.0070.01712.30
4.3.80.0000.02712.30
4.3.70.0000.01312.30
4.3.60.0000.03312.30
4.3.50.0000.01312.30
4.3.40.0030.03312.30
4.3.30.0000.01712.30
4.3.20.0000.01712.30
4.3.10.0000.02712.30
4.3.00.0000.01312.30

preferences:
140.38 ms | 1394 KiB | 7 Q