3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('EXPIRY_NOTIFICATION_TIME', 60 * 60 * 24 * 14); $now = time(); $s1 = '_date > '; $s2 = ' AND...'; var_dump($now); var_dump(EXPIRY_NOTIFICATION_TIME); var_dump($now + EXPIRY_NOTIFICATION_TIME); $str = $s1 . $now + EXPIRY_NOTIFICATION_TIME . $s2; echo $str;

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)
7.3.10.0000.01316.64
7.3.00.0060.00616.41
7.2.130.0000.01417.07
7.2.120.0000.00917.03
7.2.110.0160.00616.55
7.2.100.0030.00916.99
7.2.90.0080.00617.10
7.2.80.0090.00617.08
7.2.70.0100.00616.79
7.2.60.0050.00916.88
7.2.50.0090.00316.77
7.2.40.0030.00916.82
7.2.30.0090.00316.83
7.2.20.0070.00717.11
7.2.10.0000.01717.11
7.2.00.0050.00418.07
7.1.250.0060.00315.99
7.1.200.0130.01415.20
7.1.100.0070.01017.99
7.1.70.0000.00717.09
7.1.60.0070.01719.30
7.1.50.0070.01417.02
7.1.00.0070.07322.46
7.0.200.0040.00416.52
7.0.80.0130.08319.96
7.0.70.0400.08319.86
7.0.60.0200.06020.07
7.0.50.0030.08020.29
7.0.40.0170.03720.10
7.0.30.0030.07020.05
7.0.20.0100.05020.13
7.0.10.0070.04019.95
7.0.00.0100.06720.13
5.6.280.0030.05020.91
5.6.230.0100.07020.50
5.6.220.0000.05720.61
5.6.210.0070.07020.68
5.6.200.0100.05321.11
5.6.190.0030.04320.94
5.6.180.0070.04020.93
5.6.170.0070.04321.03
5.6.160.0170.03721.04
5.6.150.0100.07021.04
5.6.140.0100.04720.93
5.6.130.0070.08321.04
5.6.120.0030.08321.13
5.6.110.0070.08321.02
5.6.100.0100.07021.09
5.6.90.0100.05321.15
5.6.80.0100.07720.40
5.6.70.0200.06020.46
5.6.60.0030.07020.48
5.6.50.0100.07320.55
5.6.40.0100.08020.31
5.6.30.0070.08320.46
5.6.20.0070.06020.30
5.6.10.0130.07020.38
5.6.00.0130.06720.42
5.5.370.0030.05320.57
5.5.360.0100.07720.43
5.5.350.0170.06320.34
5.5.340.0030.08320.77
5.5.330.0000.04720.87
5.5.320.0070.04320.79
5.5.310.0000.04720.89
5.5.300.0100.07720.82
5.5.290.0170.07320.83
5.5.280.0030.08320.88
5.5.270.0100.07320.87
5.5.260.0030.08320.82
5.5.250.0170.06020.54
5.5.240.0070.04720.30
5.5.230.0030.06020.26
5.5.220.0230.04320.29
5.5.210.0030.07020.30
5.5.200.0030.07720.13
5.5.190.0130.07320.08
5.5.180.0000.06720.26
5.5.160.0030.07020.12
5.5.150.0130.07320.27
5.5.140.0030.05020.23
5.5.130.0000.05320.24
5.5.120.0100.06720.24
5.5.110.0100.07320.23
5.5.100.0070.04720.09
5.5.90.0070.04719.96
5.5.80.0130.07020.15
5.5.70.0030.05320.15
5.5.60.0070.06720.15
5.5.50.0070.04720.08
5.5.40.0100.07020.07
5.5.30.0030.07720.03
5.5.20.0070.07019.92
5.5.10.0100.05720.04
5.5.00.0070.04720.05

preferences:
39.1 ms | 401 KiB | 5 Q