3v4l.org

run code in 300+ PHP versions simultaneously
<?php $eastern = new \DateTimeZone( 'America/New_York' ); $time = new \DateTime( 'now', $eastern ); $ad_active_time_start = new \DateTime( 'December 18, 2015 9:00am', $eastern ); $ad_active_time_end = new \DateTime( 'December 19, 2015 10:00am', $eastern ); var_dump( $time > $ad_active_time_start ); var_dump( $ad_active_time_end > $ad_active_time_start );

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.00616.63
8.3.50.0110.00821.26
8.3.40.0070.00718.84
8.3.30.0140.00018.70
8.3.20.0000.00820.25
8.3.10.0040.00423.48
8.3.00.0050.00323.51
8.2.180.0140.00716.50
8.2.170.0070.00722.96
8.2.160.0130.00020.54
8.2.150.0030.00525.66
8.2.140.0040.00424.66
8.2.130.0000.00919.95
8.2.120.0040.00426.35
8.2.110.0060.00322.23
8.2.100.0080.00318.16
8.2.90.0000.00719.17
8.2.80.0000.00817.97
8.2.70.0060.00317.73
8.2.60.0000.00818.05
8.2.50.0040.00418.07
8.2.40.0080.00022.23
8.2.30.0080.00020.67
8.2.20.0030.00617.76
8.2.10.0040.00418.21
8.2.00.0040.00418.13
8.1.280.0140.00625.92
8.1.270.0120.00323.92
8.1.260.0090.00028.09
8.1.250.0030.00528.09
8.1.240.0070.00322.54
8.1.230.0090.00319.10
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00317.50
8.1.190.0040.00417.13
8.1.180.0030.00618.10
8.1.170.0000.00818.83
8.1.160.0040.00420.75
8.1.150.0040.00418.99
8.1.140.0050.00319.67
8.1.130.0000.00717.81
8.1.120.0070.00017.69
8.1.110.0000.00817.61
8.1.100.0000.00817.66
8.1.90.0000.00817.71
8.1.80.0050.00317.66
8.1.70.0000.00717.70
8.1.60.0000.00817.67
8.1.50.0040.00417.55
8.1.40.0000.00817.57
8.1.30.0030.00617.74
8.1.20.0000.00817.82
8.1.10.0060.00317.64
8.1.00.0000.00717.59
8.0.300.0050.00318.77
8.0.290.0070.00016.88
8.0.280.0070.00018.42
8.0.270.0030.00317.24
8.0.260.0050.00517.30
8.0.250.0060.00017.11
8.0.240.0000.00817.20
8.0.230.0020.00517.11
8.0.220.0040.00416.95
8.0.210.0040.00416.97
8.0.200.0080.00017.11
8.0.190.0000.00817.12
8.0.180.0000.00717.16
8.0.170.0050.00317.05
8.0.160.0030.00416.98
8.0.150.0080.00016.97
8.0.140.0070.00016.99
8.0.130.0000.00613.51
8.0.120.0080.00017.05
8.0.110.0000.00717.05
8.0.100.0040.00417.14
8.0.90.0080.00016.88
8.0.80.0090.00617.07
8.0.70.0080.00017.14
8.0.60.0040.00417.06
8.0.50.0040.00417.03
8.0.30.0090.01017.17
8.0.20.0080.01117.41
8.0.10.0040.00417.01
8.0.00.0110.00716.91
7.4.330.0000.00516.76
7.4.320.0040.00416.62
7.4.300.0040.00416.61
7.4.290.0030.00316.71
7.4.280.0030.00616.56
7.4.270.0000.00716.64
7.4.260.0080.00016.65
7.4.250.0000.00916.68
7.4.240.0020.00516.72
7.4.230.0070.00016.76
7.4.220.0060.01216.64
7.4.210.0030.01316.72
7.4.200.0030.00516.50
7.4.160.0060.01516.50
7.4.150.0100.00717.40
7.4.140.0060.01317.86
7.4.130.0190.00316.68
7.4.120.0090.00816.80
7.4.110.0140.01016.63
7.4.100.0150.00916.61
7.4.90.0140.00316.88
7.4.80.0070.01019.39
7.4.70.0070.01016.76
7.4.60.0060.01016.68
7.4.50.0160.00016.29
7.4.40.0130.01016.48
7.4.30.0100.00716.70
7.4.00.0070.01115.04
7.3.330.0060.00013.21
7.3.320.0030.00313.13
7.3.310.0030.00316.44
7.3.300.0070.00016.38
7.3.290.0080.00716.37
7.3.280.0130.00616.39
7.3.270.0030.01417.40
7.3.260.0110.00716.54
7.3.240.0080.01016.51
7.3.230.0030.01316.39
7.3.210.0070.01016.54
7.3.200.0120.00619.39
7.3.190.0110.00816.45
7.3.180.0090.00916.39
7.3.170.0100.01016.37
7.3.160.0100.00516.51
7.3.120.0070.01114.77
7.3.110.0070.01014.72
7.3.100.0070.01015.09
7.3.90.0030.01014.95
7.3.80.0060.00914.69
7.3.70.0030.01014.87
7.3.60.0090.00914.69
7.3.50.0070.00714.82
7.3.40.0040.01115.08
7.3.30.0060.00614.91
7.3.20.0080.00616.80
7.3.10.0040.01016.62
7.3.00.0070.00716.38
7.2.330.0100.00716.49
7.2.320.0130.00316.57
7.2.310.0090.00916.70
7.2.300.0060.01516.74
7.2.290.0090.01216.79
7.2.250.0060.01314.82
7.2.240.0030.01214.88
7.2.230.0070.00715.04
7.2.220.0060.00315.17
7.2.210.0060.00615.34
7.2.200.0070.00715.07
7.2.190.0070.01114.98
7.2.180.0070.01115.08
7.2.170.0060.00614.86
7.2.130.0100.00416.75
7.2.120.0090.00916.60
7.2.110.0120.00416.58
7.2.100.0090.00916.50
7.2.90.0090.00616.63
7.2.80.0100.00516.95
7.2.70.0100.00716.74
7.2.60.0070.00916.86
7.2.50.0150.00516.69
7.2.40.0120.00316.62
7.2.30.0050.01016.87
7.2.20.0070.00816.77
7.2.10.0150.00716.84
7.2.00.0070.00717.78
7.1.330.0030.00915.77
7.1.320.0040.00415.77
7.1.310.0060.00616.10
7.1.300.0030.00716.01
7.1.290.0040.01215.73
7.1.280.0040.00816.04
7.1.270.0000.01316.03
7.1.260.0000.01116.07
7.1.250.0070.00615.88
7.1.240.0050.00515.97
7.1.230.0000.01215.86
7.1.220.0060.00615.97
7.1.210.0000.01515.74
7.1.200.0090.00615.82
7.1.190.0060.00616.04
7.1.180.0090.00615.99
7.1.170.0080.00816.02
7.1.160.0090.00615.91
7.1.150.0120.00315.65
7.1.140.0100.00615.70
7.1.130.0070.01015.94
7.1.120.0100.00715.93
7.1.110.0000.01415.99
7.1.100.0000.00915.79
7.1.90.0100.00015.71
7.1.80.0100.00315.96
7.1.70.0010.00816.75
7.1.60.0070.00416.61
7.1.50.0030.01316.33
7.1.40.0130.00016.08
7.1.30.0100.00616.08
7.1.20.0040.00715.84
7.1.10.0060.00915.89
7.1.00.0050.04119.17
7.0.330.0180.00315.47
7.0.320.0170.00015.48
7.0.310.0100.00315.49
7.0.300.0030.01715.46
7.0.290.0100.00715.46
7.0.280.0070.00715.21
7.0.270.0080.00415.39
7.0.260.0130.00315.65
7.0.250.0030.01015.43
7.0.240.0030.01015.26
7.0.230.0070.00715.52
7.0.220.0040.00815.26
7.0.210.0040.01215.47
7.0.200.0070.00716.22
7.0.190.0030.00615.26
7.0.180.0000.01515.55
7.0.170.0030.01015.72
7.0.160.0080.00415.44
7.0.150.0100.00715.57
7.0.140.0070.00715.63
7.0.130.0100.00715.40
7.0.120.0080.00415.46
7.0.110.0060.01015.48
7.0.100.0070.00715.45
7.0.90.0110.00415.47
7.0.80.0000.01115.32
7.0.70.0070.00415.64
7.0.60.0070.04118.44
7.0.50.0080.04516.72
7.0.40.0100.04216.99
7.0.30.0170.05116.94
7.0.20.0200.02716.78
7.0.10.0040.03216.89
7.0.00.0060.04116.96
5.6.380.0100.00314.24
5.6.370.0030.00914.21
5.6.360.0000.01114.44
5.6.350.0100.00314.36
5.6.340.0060.00314.55
5.6.330.0070.00414.23
5.6.320.0110.00414.30
5.6.310.0040.01114.44
5.6.300.0030.00614.00
5.6.290.0060.00314.42
5.6.280.0070.01517.60
5.6.270.0070.00714.10
5.6.260.0030.00914.26
5.6.250.0060.00914.36
5.6.240.0050.00514.38
5.6.230.0060.00614.16
5.6.220.0060.01014.37
5.6.210.0030.03117.40
5.6.200.0070.01816.10
5.6.190.0100.03517.36
5.6.180.0110.03117.51
5.6.170.0220.03817.49
5.6.160.0050.03117.39
5.6.150.0040.03916.23
5.6.140.0060.02016.30
5.6.130.0050.02716.27
5.6.120.0030.04817.79
5.6.110.0160.03217.76
5.6.100.0110.04317.80
5.6.90.0090.03417.74
5.6.80.0100.04017.32
5.6.70.0070.00714.42
5.6.60.0060.00914.14
5.6.50.0060.00614.25
5.6.40.0040.00714.16
5.6.30.0100.00014.40
5.6.20.0000.00914.32
5.6.10.0110.00014.10
5.6.00.0030.01314.41
5.5.380.0040.00411.18
5.5.370.0000.00911.19
5.5.360.0050.00511.26
5.5.350.0070.03915.80
5.5.340.0030.04514.56
5.5.330.0030.02415.70
5.5.320.0200.03915.71
5.5.310.0100.02715.73
5.5.300.0030.04514.56
5.5.290.0110.01714.56
5.5.280.0050.02316.02
5.5.270.0100.04215.96
5.5.260.0100.04016.09
5.5.250.0070.03615.83
5.5.240.0100.04115.60
5.5.230.0040.00411.18
5.5.220.0020.00511.18
5.5.210.0000.00811.18
5.5.200.0000.00811.18
5.5.190.0070.00711.18
5.5.180.0040.00811.18
5.5.170.0060.00611.18
5.5.160.0000.01211.18
5.5.150.0000.00611.18
5.5.140.0050.00311.18
5.5.130.0040.01111.18
5.5.120.0000.01211.20
5.5.110.0040.00411.18
5.5.100.0000.00811.18
5.5.90.0030.00711.18
5.5.80.0080.00011.21
5.5.70.0060.00011.18
5.5.60.0070.00011.18
5.5.50.0090.00311.18
5.5.40.0000.01411.18
5.5.30.0070.00811.18
5.5.20.0070.00411.18
5.5.10.0040.00811.18
5.5.00.0030.00911.18

preferences:
33.7 ms | 401 KiB | 5 Q