3v4l.org

run code in 300+ PHP versions simultaneously
<?php $format = "j-M-y H:i:s"; $f4_raw = "Sat Aug 31 2013 00:00:00 GMT+0530 (India Standard Time)"; $f4_formatted = date($format, strtotime($f4_raw)); echo "Format 4: $f4_formatted"; //$date = DateTime::createFromFormat('i/M/Y', 'Tue/Feb/2013'); //import with the specified format... //echo $date->format('Y-m-d');

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.0100.00718.50
8.3.50.0250.00522.05
8.3.40.0140.00018.97
8.3.30.0120.00919.09
8.3.20.0000.00720.16
8.3.10.0080.00023.48
8.3.00.0070.00020.77
8.2.180.0090.00616.75
8.2.170.0140.00722.96
8.2.160.0130.00722.18
8.2.150.0040.00424.18
8.2.140.0090.00924.66
8.2.130.0040.00426.16
8.2.120.0040.00422.32
8.2.110.0030.00722.40
8.2.100.0060.00618.03
8.2.90.0000.00818.09
8.2.80.0000.00817.97
8.2.70.0040.00417.75
8.2.60.0000.00917.93
8.2.50.0040.00418.07
8.2.40.0000.00718.34
8.2.30.0000.00818.07
8.2.20.0030.00517.98
8.2.10.0050.00217.85
8.2.00.0000.00718.00
8.1.280.0100.01025.92
8.1.270.0060.00322.22
8.1.260.0030.00526.35
8.1.250.0070.00028.09
8.1.240.0090.00022.58
8.1.230.0110.00021.04
8.1.220.0000.00817.78
8.1.210.0000.00919.02
8.1.200.0030.00617.48
8.1.190.0080.00017.43
8.1.180.0040.00418.10
8.1.170.0060.00318.84
8.1.160.0000.00722.04
8.1.150.0000.00718.72
8.1.140.0060.00317.67
8.1.130.0030.00617.91
8.1.120.0000.00717.69
8.1.110.0000.00817.59
8.1.100.0040.00417.66
8.1.90.0000.00717.53
8.1.80.0000.00717.63
8.1.70.0000.00817.63
8.1.60.0000.00717.66
8.1.50.0040.00417.54
8.1.40.0030.00617.61
8.1.30.0030.00617.67
8.1.20.0030.00517.74
8.1.10.0000.00817.73
8.1.00.0000.00717.61
8.0.300.0060.00319.79
8.0.290.0070.00017.28
8.0.280.0000.00718.59
8.0.270.0000.00817.24
8.0.260.0030.00317.08
8.0.250.0070.00017.25
8.0.240.0100.00017.22
8.0.230.0070.00017.17
8.0.220.0040.00417.03
8.0.210.0040.00417.13
8.0.200.0000.01017.15
8.0.190.0040.00417.28
8.0.180.0040.00417.08
8.0.170.0040.00417.23
8.0.160.0040.00417.13
8.0.150.0070.00017.13
8.0.140.0040.00417.16
8.0.130.0030.00313.47
8.0.120.0040.00417.00
8.0.110.0040.00417.08
8.0.100.0040.00417.05
8.0.90.0040.00416.98
8.0.80.0120.00917.04
8.0.70.0040.00416.92
8.0.60.0000.00716.90
8.0.50.0000.00717.15
8.0.30.0130.00817.46
8.0.20.0110.00817.42
8.0.10.0070.00017.23
8.0.00.0100.01016.86
7.4.330.0000.00515.03
7.4.320.0060.00016.65
7.4.300.0030.00316.50
7.4.290.0030.00616.76
7.4.280.0000.00616.64
7.4.270.0040.00416.74
7.4.260.0040.00416.73
7.4.250.0040.00416.72
7.4.240.0030.00516.62
7.4.230.0070.00016.39
7.4.220.0150.01116.77
7.4.210.0050.01216.63
7.4.200.0030.00316.64
7.4.190.0030.00316.77
7.4.160.0030.01316.82
7.4.150.0090.00817.40
7.4.140.0070.01217.86
7.4.130.0130.00616.61
7.4.120.0080.00816.78
7.4.110.0090.00916.66
7.4.100.0060.01616.65
7.4.90.0110.00716.66
7.4.80.0030.01316.48
7.4.70.0080.01216.59
7.4.60.0060.00916.83
7.4.50.0000.00616.82
7.4.40.0000.01822.77
7.4.30.0080.00816.49
7.4.00.0070.01015.29
7.3.330.0000.00513.28
7.3.320.0050.00013.11
7.3.310.0030.00316.40
7.3.300.0070.00016.29
7.3.290.0050.01216.34
7.3.280.0080.00816.42
7.3.270.0080.00817.40
7.3.260.0040.01416.73
7.3.250.0150.00716.57
7.3.240.0060.01616.79
7.3.230.0120.00616.55
7.3.210.0140.00416.57
7.3.200.0160.00319.39
7.3.190.0030.01916.63
7.3.180.0090.00616.68
7.3.170.0100.00616.44
7.3.160.0040.01316.52
7.3.120.0090.00614.71
7.3.00.0030.01016.84
7.2.330.0140.01416.92
7.2.320.0070.01016.50
7.2.310.0100.00716.70
7.2.300.0130.00316.57
7.2.290.0030.01416.77
7.2.130.0110.00317.02
7.2.120.0100.00616.97
7.2.110.0100.01016.95
7.2.100.0090.00616.88
7.2.90.0100.00717.02
7.2.80.0040.01516.95
7.2.70.0090.00617.14
7.2.60.0120.00617.09
7.2.50.0130.00316.72
7.2.40.0060.00317.18
7.2.30.0060.01017.21
7.2.20.0000.01216.77
7.2.10.0140.00316.89
7.2.00.0030.00818.26
7.1.250.0070.00415.98
7.1.240.0040.00715.94
7.1.230.0040.01115.87
7.1.220.0100.00316.09
7.1.210.0140.00315.91
7.1.200.0070.00415.95
7.1.190.0070.00716.14
7.1.180.0000.01316.08
7.1.170.0060.00316.00
7.1.160.0080.00416.00
7.1.150.0030.01016.06
7.1.140.0070.00716.13
7.1.130.0090.00316.07
7.1.120.0060.00615.87
7.1.110.0070.00716.03
7.1.100.0070.00317.34
7.1.90.0000.01315.86
7.1.80.0000.00916.25
7.1.70.0050.00416.45
7.1.60.0110.00317.51
7.1.50.0110.00916.59
7.1.40.0040.01115.94
7.1.30.0140.00015.80
7.1.20.0030.00615.86
7.1.10.0100.00016.17
7.1.00.0100.03719.07
7.0.330.0040.00415.30
7.0.320.0030.00615.30
7.0.310.0030.01115.47
7.0.300.0070.00715.63
7.0.290.0080.00815.43
7.0.280.0090.00315.24
7.0.270.0000.01515.43
7.0.260.0000.00815.54
7.0.250.0030.00915.45
7.0.240.0030.01315.32
7.0.230.0110.00415.62
7.0.220.0040.00715.45
7.0.210.0090.00615.46
7.0.200.0090.00716.19
7.0.190.0070.00715.44
7.0.180.0140.00015.31
7.0.170.0060.00915.24
7.0.160.0130.00315.55
7.0.150.0040.00915.39
7.0.140.0000.04318.88
7.0.130.0070.00715.53
7.0.120.0070.00715.03
7.0.110.0040.01215.43
7.0.100.0030.01315.57
7.0.90.0100.00315.48
7.0.80.0120.03717.89
7.0.70.0050.02917.79
7.0.60.0070.05017.73
7.0.50.0100.04517.85
7.0.40.0050.03416.91
7.0.30.0060.04617.01
7.0.20.0080.04716.85
7.0.10.0030.04416.82
7.0.00.0040.02916.63
5.6.380.0060.00914.43
5.6.370.0080.00614.22
5.6.360.0070.00714.51
5.6.350.0000.00914.20
5.6.340.0070.00714.48
5.6.330.0000.01014.38
5.6.320.0070.01114.29
5.6.310.0070.00714.36
5.6.300.0070.00314.11
5.6.290.0080.00014.42
5.6.280.0050.05417.54
5.6.270.0110.00314.28
5.6.260.0060.00314.32
5.6.250.0060.00614.58
5.6.240.0060.01014.41
5.6.230.0100.04517.44
5.6.220.0090.02717.57
5.6.210.0100.03717.47
5.6.200.0100.02517.72
5.6.190.0060.04517.72
5.6.180.0040.04817.73
5.6.170.0070.04317.81
5.6.160.0070.04717.86
5.6.150.0070.04917.81
5.6.140.0050.04617.58
5.6.130.0050.05217.70
5.6.120.0150.03717.72
5.6.110.0050.02717.60
5.6.100.0080.04517.68
5.6.90.0070.04317.70
5.6.80.0020.03917.31
5.6.70.0070.04217.38
5.6.60.0050.03517.22
5.6.50.0050.02717.48
5.6.40.0030.02817.42
5.6.30.0080.02817.41
5.6.20.0060.02617.34
5.6.10.0030.02717.32
5.6.00.0130.03417.39
5.5.380.0090.00011.18
5.5.370.0140.03715.76
5.5.360.0020.05015.75
5.5.350.0070.04215.81
5.5.340.0070.04216.08
5.5.330.0050.04416.05
5.5.320.0050.04416.02
5.5.310.0070.03315.95
5.5.300.0070.03015.97
5.5.290.0050.03815.98
5.5.280.0100.03915.98
5.5.270.0050.02616.02
5.5.260.0100.04115.95
5.5.250.0030.03015.91
5.5.240.0060.03115.72
5.5.230.0110.01815.59
5.5.220.0090.02715.79
5.5.210.0080.02515.64
5.5.200.0050.02315.72
5.5.190.0060.03515.64
5.5.180.0070.02515.69
5.5.170.0050.00411.18
5.5.160.0050.04015.69
5.5.150.0020.04715.72
5.5.140.0120.03515.67
5.5.130.0050.02415.67
5.5.120.0130.03915.66
5.5.110.0050.03815.70
5.5.100.0050.03015.64
5.5.90.0030.02715.62
5.5.80.0110.03815.67
5.5.70.0080.03615.65
5.5.60.0060.04015.61
5.5.50.0080.03815.58
5.5.40.0030.04415.55
5.5.30.0130.03415.58
5.5.20.0080.04115.62
5.5.10.0080.02315.62
5.5.00.0120.03015.57
5.4.450.0020.03015.31
5.4.440.0100.02515.15
5.4.430.0050.04015.24
5.4.420.0030.04115.15
5.4.410.0080.04015.14
5.4.400.0050.04015.10
5.4.390.0020.03215.13
5.4.380.0040.02715.17
5.4.370.0030.04615.04
5.4.360.0100.02315.10
5.4.350.0060.04315.11
5.4.340.0080.02215.20
5.4.330.0030.00811.18
5.4.320.0030.02915.13
5.4.310.0050.04115.16
5.4.300.0030.04315.14
5.4.290.0030.03115.20
5.4.280.0100.03815.16
5.4.270.0110.03215.16
5.4.260.0070.03615.15
5.4.250.0080.03715.20
5.4.240.0050.04215.13
5.4.230.0110.03615.06
5.4.220.0080.04114.97
5.4.210.0050.04015.16
5.4.200.0020.04215.07
5.4.190.0040.03915.13
5.4.180.0070.04015.21
5.4.170.0020.02915.10
5.4.160.0030.02315.11
5.4.150.0050.04115.09
5.4.140.0080.01813.84
5.4.130.0110.03613.84
5.4.120.0030.04213.79
5.4.110.0030.02213.77
5.4.100.0120.02013.72
5.4.90.0050.02213.78
5.4.80.0030.04213.79
5.4.70.0150.03413.76
5.4.60.0080.03813.68
5.4.50.0100.03813.75
5.4.40.0070.03313.82
5.4.30.0060.03613.73
5.4.20.0070.03613.75
5.4.10.0060.02313.75
5.4.00.0080.03113.44
5.3.290.0010.04312.83
5.3.280.0090.03412.86
5.3.270.0080.04212.87
5.3.260.0050.04212.82
5.3.250.0070.02012.82
5.3.240.0130.03212.89
5.3.230.0030.03512.88
5.3.220.0080.02512.84
5.3.210.0120.03712.86
5.3.200.0030.02012.79
5.3.190.0080.04012.86
5.3.180.0050.04012.85
5.3.170.0050.02712.79
5.3.160.0080.03712.87
5.3.150.0020.03312.78
5.3.140.0060.03912.84
5.3.130.0100.03012.77
5.3.120.0030.04012.85
5.3.110.0060.03112.84
5.3.100.0080.03812.59
5.3.90.0100.03312.50
5.3.80.0030.02712.58
5.3.70.0050.03812.59
5.3.60.0080.03512.56
5.3.50.0100.03512.53
5.3.40.0060.03312.49
5.3.30.0100.03312.53
5.3.20.0090.03012.41
5.3.10.0080.03712.41
5.3.00.0110.03312.41
5.2.170.0080.02811.17
5.2.160.0070.03211.15
5.2.150.0110.02711.18
5.2.140.0070.03211.08
5.2.130.0070.03111.17
5.2.120.0030.02511.13
5.2.110.0090.02511.12
5.2.100.0090.03211.13
5.2.90.0040.03411.16
5.2.80.0070.03011.09
5.2.70.0070.03711.06
5.2.60.0060.03211.03
5.2.50.0060.03111.03
5.2.40.0040.03411.08
5.2.30.0060.03211.06
5.2.20.0070.03011.04
5.2.10.0060.03011.04
5.2.00.0060.03311.03
5.1.60.0070.02711.03
5.1.50.0050.02711.03
5.1.40.0020.02111.03
5.1.30.0090.02511.03
5.1.20.0060.02811.03
5.1.10.0020.03511.03
5.1.00.0010.02211.03
5.0.50.0020.02711.03
5.0.40.0040.02511.03
5.0.30.0030.03411.03
5.0.20.0030.02511.03
5.0.10.0040.02011.03
5.0.00.0030.03511.03
4.4.90.0030.01411.03
4.4.80.0040.01811.03
4.4.70.0030.01211.03
4.4.60.0000.01811.03
4.4.50.0000.02111.03
4.4.40.0030.02811.03
4.4.30.0060.01111.03
4.4.20.0030.01311.03
4.4.10.0030.01211.03
4.4.00.0020.03011.03
4.3.110.0010.02011.03
4.3.100.0030.02011.03
4.3.90.0040.01811.03
4.3.80.0030.02811.03
4.3.70.0020.01511.03
4.3.60.0070.01211.03
4.3.50.0020.01211.03
4.3.40.0020.02811.03
4.3.30.0020.01511.03
4.3.20.0010.02011.03
4.3.10.0010.01411.03
4.3.00.0000.02111.03

preferences:
43.45 ms | 401 KiB | 5 Q