3v4l.org

run code in 300+ PHP versions simultaneously
<?php $target_date = "2016-02-12"; if ( strtotime($target_date) <= time() ) { echo 'yep'; } else { echo 'nope'; }

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.4.10.0070.01114.98
7.4.00.0070.01014.80
7.3.130.0060.00915.07
7.3.120.0100.00314.94
7.3.110.0070.00714.82
7.3.100.0030.01015.00
7.3.90.0070.01015.04
7.3.80.0120.00314.93
7.3.70.0000.01214.88
7.3.60.0090.00914.63
7.3.50.0110.00314.79
7.3.40.0070.00714.96
7.3.30.0040.01214.97
7.3.20.0070.00716.56
7.3.10.0090.00416.69
7.3.00.0070.00416.54
7.2.260.0040.01515.07
7.2.250.0080.00915.26
7.2.240.0060.00915.40
7.2.230.0030.01314.97
7.2.220.0090.00614.96
7.2.210.0120.00615.15
7.2.200.0060.00915.28
7.2.190.0070.01115.14
7.2.180.0100.01015.05
7.2.170.0000.01315.13
7.2.160.0090.00315.16
7.2.150.0040.01017.01
7.2.140.0030.01317.06
7.2.130.0090.00317.03
7.2.120.0100.00716.95
7.2.110.0040.01216.93
7.2.100.0030.01216.95
7.2.90.0030.00616.89
7.2.80.0030.01317.16
7.2.70.0030.01017.02
7.2.60.0050.00616.98
7.2.50.0060.00816.84
7.2.40.0080.00316.82
7.2.30.0040.00916.91
7.2.20.0090.00617.14
7.2.10.0130.00317.06
7.2.00.0070.00716.88
7.1.330.0030.00916.00
7.1.320.0110.00715.75
7.1.310.0070.00715.89
7.1.300.0070.00715.44
7.1.290.0100.00615.75
7.1.280.0060.00915.60
7.1.270.0000.01015.97
7.1.260.0070.00715.97
7.1.250.0060.00615.90
7.1.240.0000.01516.10
7.1.230.0100.00315.89
7.1.220.0060.00915.60
7.1.210.0070.00715.72
7.1.200.0100.00315.94
7.1.190.0000.01015.67
7.1.180.0040.00816.04
7.1.170.0030.01015.91
7.1.160.0030.01315.91
7.1.150.0080.00415.91
7.1.140.0040.01115.95
7.1.130.0000.00915.70
7.1.120.0000.01115.46
7.1.110.0030.00615.81
7.1.100.0040.01216.00
7.1.90.0120.00415.82
7.1.80.0070.00715.87
7.1.70.0040.00716.51
7.1.60.0020.00916.29
7.1.50.0030.00915.95
7.1.40.0130.00315.80
7.1.30.0030.00915.76
7.1.20.0000.01215.53
7.1.10.0070.00715.90
7.1.00.0020.04119.16
7.0.330.0040.00815.17
7.0.320.0040.00415.42
7.0.310.0060.00615.66
7.0.300.0060.00615.61
7.0.290.0080.00815.60
7.0.280.0040.01115.50
7.0.270.0000.01215.63
7.0.260.0070.00315.41
7.0.250.0040.00815.71
7.0.240.0030.01415.26
7.0.230.0030.01315.74
7.0.220.0030.00715.31
7.0.210.0060.00615.52
7.0.200.0170.00815.07
7.0.190.0040.01215.61
7.0.180.0040.01115.25
7.0.170.0070.00715.32
7.0.160.0030.01015.66
7.0.150.0000.01015.51
7.0.140.0040.00715.57
7.0.130.0080.03818.87
7.0.120.0030.04518.81
7.0.110.0500.03817.77
7.0.100.0070.02918.59
7.0.90.0050.04218.77
7.0.80.0050.03318.84
7.0.70.0070.03318.85
7.0.60.0080.03518.71
7.0.50.0090.03318.74
7.0.40.0100.03217.75
7.0.30.0120.03517.92
7.0.20.0070.04317.80
7.0.10.0030.04117.80
7.0.00.0100.02817.84
5.6.400.0100.00714.35
5.6.390.0070.00314.38
5.6.380.0000.01114.23
5.6.370.0100.00314.47
5.6.360.0060.00614.67
5.6.350.0080.00414.39
5.6.340.0030.01014.79
5.6.330.0070.00714.46
5.6.320.0040.01114.53
5.6.310.0110.00314.68
5.6.300.0070.00714.39
5.6.290.0070.00414.71
5.6.280.0030.03517.71
5.6.270.0040.04217.61
5.6.260.0020.04517.77
5.6.250.0030.03317.71
5.6.240.0050.03417.90
5.6.230.0090.03517.66
5.6.220.0030.03817.56
5.6.210.0120.03017.66
5.6.200.0050.03717.68
5.6.190.0090.03217.69
5.6.180.0120.02517.76
5.6.170.0020.04417.76
5.6.160.0050.03417.76
5.6.150.0050.03317.68
5.6.140.0030.03817.73
5.6.130.0050.03317.79
5.6.120.0020.03817.73
5.6.110.0050.03717.68
5.6.100.0070.04017.57
5.6.90.0100.02917.68
5.6.80.0080.02717.24
5.6.70.0050.03517.39
5.6.60.0080.03017.36
5.6.50.0100.02817.35
5.6.40.0130.03017.50
5.6.30.0120.03417.06
5.6.20.0070.03017.47
5.6.10.0030.03417.28
5.6.00.0020.03417.23

preferences:
35.22 ms | 400 KiB | 5 Q