3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Listing Created at Date - You can change it for testing purposes $createdAt = new \DateTime('2015-12-14'); // Server Current Date/Time $currentDate = new DateTime(); if( $createdAt->format('Y') >= 2016 || $currentDate->format('m') >= $createdAt->format('m') ) { echo 'Redirect'; } else { echo 'Hello Google.'; }

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)
8.3.60.0090.01216.88
8.3.50.0100.00718.30
8.3.40.0110.00418.92
8.3.30.0060.00918.66
8.3.20.0030.00519.60
8.3.10.0040.00420.46
8.3.00.0040.00423.65
8.2.180.0160.00025.92
8.2.170.0180.00322.96
8.2.160.0070.00720.18
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00420.49
8.2.120.0050.00326.35
8.2.110.0060.00320.93
8.2.100.0030.01017.91
8.2.90.0000.00819.10
8.2.80.0000.00817.97
8.2.70.0030.00617.88
8.2.60.0070.00417.93
8.2.50.0040.00419.09
8.2.40.0000.00720.57
8.2.30.0090.00020.51
8.2.20.0020.00518.00
8.2.10.0070.00018.04
8.2.00.0040.00418.26
8.1.280.0170.00725.92
8.1.270.0030.00520.78
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0040.00719.24
8.1.230.0090.00317.89
8.1.220.0030.00617.77
8.1.210.0080.00018.77
8.1.200.0090.00017.60
8.1.190.0040.00417.35
8.1.180.0080.00018.10
8.1.170.0040.00418.81
8.1.160.0000.00818.84
8.1.150.0000.00720.19
8.1.140.0040.00419.61
8.1.130.0000.00720.90
8.1.120.0000.00717.55
8.1.110.0000.00717.66
8.1.100.0000.00817.64
8.1.90.0000.00917.48
8.1.80.0000.00817.69
8.1.70.0070.00017.64
8.1.60.0000.00817.79
8.1.50.0070.00017.70
8.1.40.0040.00417.62
8.1.30.0040.00417.81
8.1.20.0040.00417.70
8.1.10.0040.00417.61
8.1.00.0000.00817.67
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0070.00018.40
8.0.270.0070.00017.35
8.0.260.0080.00017.25
8.0.250.0030.00317.10
8.0.240.0070.00017.11
8.0.230.0070.00017.17
8.0.220.0040.00417.05
8.0.210.0030.00317.08
8.0.200.0030.00317.14
8.0.190.0000.00817.11
8.0.180.0030.00517.13
8.0.170.0000.00717.14
8.0.160.0030.00417.06
8.0.150.0040.00317.09
8.0.140.0070.00017.05
8.0.130.0000.00613.46
8.0.120.0000.00716.95
8.0.110.0000.00717.04
8.0.100.0000.00717.16
8.0.90.0000.00716.99
8.0.80.0120.00917.14
8.0.70.0090.00017.05
8.0.60.0040.00416.94
8.0.50.0040.00417.03
8.0.30.0140.00417.21
8.0.20.0090.01117.41
8.0.10.0000.00717.11
8.0.00.0120.00816.84
7.4.330.0000.00515.55
7.4.320.0000.00616.71
7.4.300.0040.00416.78
7.4.290.0000.00816.75
7.4.280.0000.00816.73
7.4.270.0070.00016.60
7.4.260.0030.00616.63
7.4.250.0030.00516.51
7.4.240.0030.00316.57
7.4.230.0030.00316.44
7.4.220.0030.00616.68
7.4.210.0130.00816.63
7.4.200.0040.00416.75
7.4.160.0070.01116.58
7.4.150.0070.01317.40
7.4.140.0080.01017.86
7.4.130.0090.01116.62
7.4.120.0130.00816.60
7.4.110.0130.00416.79
7.4.100.0110.01416.61
7.4.90.0130.00616.67
7.4.80.0060.01219.39
7.4.70.0070.01116.56
7.4.60.0060.01016.74
7.4.50.0060.00616.59
7.4.40.0100.00716.72
7.4.30.0080.00816.72
7.4.00.0000.01715.19
7.3.330.0000.00613.21
7.3.320.0060.00013.10
7.3.310.0070.00016.34
7.3.300.0030.00316.29
7.3.290.0000.00616.32
7.3.280.0100.00816.30
7.3.270.0090.00917.40
7.3.260.0080.00916.44
7.3.250.0120.00516.48
7.3.240.0080.01416.41
7.3.230.0130.00416.39
7.3.210.0100.00616.61
7.3.200.0090.01216.60
7.3.190.0060.01016.51
7.3.180.0100.01016.36
7.3.170.0130.00316.52
7.3.160.0060.01016.59
7.2.330.0130.00416.77
7.2.320.0000.01616.60
7.2.310.0110.00616.92
7.2.300.0070.01116.70
7.2.290.0090.00916.86
7.2.60.0030.00916.82
7.1.200.0060.00915.70
7.1.70.0000.01017.08
7.1.60.0070.00317.31
7.1.20.0300.05340.31
7.1.10.0100.05722.15
7.1.00.0170.07322.31
7.0.200.0040.00816.89
7.0.160.0070.06021.84
7.0.150.0170.04721.84
7.0.140.0130.05021.76
7.0.130.0100.05021.77
7.0.120.0100.05021.70
7.0.110.0070.06021.81
7.0.100.0170.05721.99
7.0.90.0100.05721.91
7.0.80.0100.05021.80
7.0.70.0000.06021.86
7.0.60.0070.05321.97
7.0.50.0130.05021.90
7.0.40.0030.06721.80
7.0.30.0030.06721.94
7.0.20.0030.06321.93
7.0.10.0070.07321.87
7.0.00.0070.05321.89

preferences:
62.69 ms | 401 KiB | 5 Q