3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('America/New_York'); echo $script_tz = date_default_timezone_get(); $ny_time = "12:30 am"; echo gmdate('h:i a',strtotime($ny_time));

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.0040.01416.50
8.3.50.0110.00416.41
8.3.40.0040.01119.12
8.3.30.0140.00018.79
8.3.20.0040.00420.29
8.3.10.0080.00021.90
8.3.00.0050.00323.66
8.2.180.0160.00318.53
8.2.170.0040.01122.96
8.2.160.0070.00720.25
8.2.150.0030.00624.18
8.2.140.0050.00324.66
8.2.130.0040.00419.89
8.2.120.0080.00026.35
8.2.110.0060.00322.25
8.2.100.0120.00018.03
8.2.90.0040.00418.03
8.2.80.0080.00019.16
8.2.70.0060.00317.75
8.2.60.0080.00018.05
8.2.50.0060.00318.07
8.2.40.0080.00418.34
8.2.30.0040.00418.13
8.2.20.0050.00317.86
8.2.10.0030.00518.12
8.2.00.0040.00418.21
8.1.270.0080.00623.99
8.1.260.0000.00828.09
8.1.250.0070.00028.09
8.1.240.0040.00423.92
8.1.230.0070.00422.81
8.1.220.0090.00017.74
8.1.210.0040.00418.77
8.1.200.0000.00817.48
8.1.190.0090.00017.35
8.1.180.0060.00318.10
8.1.170.0000.00918.64
8.1.160.0060.00318.78
8.1.150.0040.00418.79
8.1.140.0040.00419.49
8.1.130.0030.00317.67
8.1.120.0080.00017.63
8.1.110.0000.00817.55
8.1.100.0040.00417.60
8.1.90.0050.00317.56
8.1.80.0030.00317.45
8.1.70.0000.00717.48
8.1.60.0040.00417.66
8.1.50.0030.00617.59
8.1.40.0000.00717.60
8.1.30.0040.00417.65
8.1.20.0040.00417.74
8.1.10.0030.00617.68
8.1.00.0000.00817.58
8.0.300.0040.00420.15
8.0.290.0070.00016.75
8.0.280.0030.00318.51
8.0.270.0050.00217.36
8.0.260.0040.00417.30
8.0.250.0030.00317.13
8.0.240.0070.00017.11
8.0.230.0030.00317.07
8.0.220.0030.00316.96
8.0.210.0000.00816.91
8.0.200.0000.00616.98
8.0.190.0040.00417.07
8.0.180.0000.00717.00
8.0.170.0040.00717.06
8.0.160.0070.00017.12
8.0.150.0000.00716.87
8.0.140.0030.00416.92
8.0.130.0050.00213.45
8.0.120.0030.00616.92
8.0.110.0040.00416.98
8.0.100.0070.00016.96
8.0.90.0000.00716.89
8.0.80.0130.00916.90
8.0.70.0050.00217.13
8.0.60.0040.00417.02
8.0.50.0040.00416.88
8.0.30.0080.00817.14
8.0.20.0090.01117.40
8.0.10.0000.00716.96
8.0.00.0100.00816.76
7.4.330.0050.00016.72
7.4.320.0030.00316.57
7.4.300.0000.00816.56
7.4.290.0000.00816.51
7.4.280.0060.00316.64
7.4.270.0030.00316.64
7.4.260.0040.00416.59
7.4.250.0000.00716.48
7.4.240.0020.00716.68
7.4.230.0070.00016.39
7.4.220.0120.00316.55
7.4.210.0030.01116.60
7.4.200.0000.00716.47
7.4.160.0210.00016.53
7.4.150.0140.00917.40
7.4.140.0100.00917.86
7.4.130.0070.01216.62
7.4.120.0050.01216.65
7.4.110.0070.01716.49
7.4.100.0070.01016.75
7.4.90.0100.00716.45
7.4.80.0090.01319.39
7.4.70.0070.01016.49
7.4.60.0050.01016.70
7.4.50.0110.00316.55
7.4.40.0030.01316.49
7.4.30.0030.01316.77
7.4.00.0060.01115.04
7.3.330.0000.00513.05
7.3.320.0070.00013.20
7.3.310.0080.00016.20
7.3.300.0030.00316.21
7.3.290.0120.00516.33
7.3.280.0100.00916.30
7.3.270.0120.00617.40
7.3.260.0040.01216.37
7.3.250.0120.00716.38
7.3.240.0090.00816.59
7.3.230.0170.00016.50
7.3.210.0130.00316.26
7.3.200.0130.00619.39
7.3.190.0070.01016.42
7.3.180.0100.01116.34
7.3.170.0100.00616.38
7.3.160.0120.00316.57
7.3.120.0030.01614.79
7.3.110.0040.01414.91
7.3.100.0000.01615.13
7.3.90.0070.00715.05
7.3.80.0000.00915.02
7.3.70.0090.00315.02
7.3.60.0060.00614.77
7.3.50.0060.01014.67
7.3.40.0040.01114.74
7.3.30.0060.00614.62
7.3.20.0060.00316.73
7.3.10.0000.01116.66
7.3.00.0060.00616.69
7.2.330.0070.01016.61
7.2.320.0150.00916.67
7.2.310.0070.01016.61
7.2.300.0110.00516.80
7.2.290.0060.01116.80
7.2.250.0030.01615.30
7.2.240.0000.01915.30
7.2.230.0030.00715.28
7.2.220.0090.00615.20
7.2.210.0080.00415.24
7.2.200.0100.00315.08
7.2.190.0060.01215.28
7.2.180.0100.00315.21
7.2.170.0040.00715.13
7.2.130.0070.00717.02
7.2.120.0070.00316.88
7.2.110.0100.00016.88
7.2.100.0030.00716.87
7.2.90.0040.01116.80
7.2.80.0070.00716.98
7.2.70.0030.00616.89
7.2.60.0090.00516.97
7.2.50.0080.00417.07
7.2.40.0070.00317.06
7.2.30.0080.00317.19
7.2.20.0030.00716.88
7.2.10.0040.00717.06
7.2.00.0050.01018.37
7.1.330.0040.00815.67
7.1.320.0080.00315.94
7.1.310.0070.00715.84
7.1.300.0040.00815.76
7.1.290.0000.01715.83
7.1.280.0000.01415.86
7.1.270.0030.01015.95
7.1.260.0030.00715.91
7.1.250.0000.01216.04
7.1.200.0060.00615.90
7.1.100.0100.00618.11
7.1.70.0000.00817.16
7.1.60.0060.01219.12
7.1.50.0030.01617.20
7.1.00.0070.07022.35
7.0.200.0040.00416.66
7.0.60.0200.03019.90
7.0.50.0030.05017.85
7.0.40.0070.04320.04
7.0.30.0270.07320.00
7.0.20.0300.07020.16
7.0.10.0070.05320.09
7.0.00.0070.05720.12
5.6.280.0000.06321.03
5.6.210.0100.08020.52
5.6.200.0070.03718.22
5.6.190.0070.05320.57
5.6.180.0370.05720.61
5.6.170.0200.08320.71
5.6.160.0200.07320.37
5.6.150.0100.03318.18
5.6.140.0130.06718.12
5.6.130.0030.06018.21
5.6.120.0100.06721.01
5.6.110.0100.08320.88
5.6.100.0070.08721.10
5.6.90.0100.06320.99
5.6.80.0100.07720.40
5.5.350.0000.05720.31
5.5.340.0100.06017.91
5.5.330.0100.05020.13
5.5.320.0230.05020.17
5.5.310.0200.05020.50
5.5.300.0070.08018.02
5.5.290.0030.07718.01
5.5.280.0100.03320.88
5.5.270.0130.03020.72
5.5.260.0070.08720.65
5.5.250.0030.07020.57
5.5.240.0170.03720.14

preferences:
49.97 ms | 400 KiB | 5 Q