3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = new DateTime(); $date = $now->format('d'); $month = $now->format('m'); $year = $now->format('Y'); $DateOfBirth = $date . '/' . $month . '/' . $year; echo ($DateOfBirth) ; //finding the output type for better understand echo (getType($DateOfBirth));

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.5.10.0080.01018.97
8.5.00.0150.01319.99
8.4.150.0020.00014.05
8.4.140.0140.00917.79
8.4.130.0090.00818.16
8.4.120.0100.00920.31
8.4.110.0130.00722.18
8.4.100.0060.00317.68
8.4.90.0120.00918.75
8.4.80.0090.00817.83
8.4.70.0140.00417.76
8.4.60.0140.00718.99
8.4.50.0110.00917.95
8.4.40.0040.00419.66
8.4.30.0080.00820.33
8.4.20.0120.00817.99
8.4.10.0080.00019.63
8.3.280.0090.01118.53
8.3.270.0120.00616.60
8.3.260.0090.01116.70
8.3.250.0130.00518.52
8.3.240.0050.00416.75
8.3.230.0130.00616.95
8.3.220.0120.00717.36
8.3.210.0050.00316.68
8.3.200.0120.00816.68
8.3.190.0140.00617.20
8.3.180.0110.00918.51
8.3.170.0100.01019.02
8.3.160.0140.00418.58
8.3.150.0070.00720.64
8.3.140.0110.00716.78
8.3.130.0000.00816.80
8.3.120.0070.01118.70
8.3.110.0090.00620.94
8.3.100.0030.00624.06
8.3.90.0080.00026.77
8.3.80.0060.00316.63
8.3.70.0060.01016.63
8.3.60.0070.01418.45
8.3.50.0200.01024.55
8.3.40.0140.00318.71
8.3.30.0110.00318.97
8.3.20.0040.00420.80
8.3.10.0070.00023.45
8.3.00.0040.00418.03
8.2.290.0100.00520.54
8.2.280.0050.00518.28
8.2.270.0070.01117.33
8.2.260.0000.00818.68
8.2.250.0060.00916.84
8.2.240.0060.00317.31
8.2.230.0090.00622.58
8.2.220.0060.01337.54
8.2.210.0070.00726.77
8.2.200.0030.00616.50
8.2.190.0110.00416.88
8.2.180.0180.00418.23
8.2.170.0110.01118.87
8.2.160.0070.01022.96
8.2.150.0070.00424.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00426.16
8.2.110.0090.00622.26
8.2.100.0040.00818.03
8.2.90.0100.00319.57
8.2.80.0000.00818.91
8.2.70.0030.00617.75
8.2.60.0040.00418.05
8.2.50.0040.00418.07
8.2.40.0000.00918.35
8.2.30.0040.00718.11
8.2.20.0040.00418.18
8.2.10.0030.00319.25
8.2.00.0000.00719.36
8.1.330.0110.00821.86
8.1.320.0120.00716.20
8.1.310.0040.01116.88
8.1.300.0100.00716.88
8.1.290.0070.00318.88
8.1.280.0070.01125.92
8.1.270.0090.00020.69
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0030.00620.48
8.1.230.0080.00417.70
8.1.220.0040.00417.75
8.1.210.0030.00618.77
8.1.200.0030.00617.48
8.1.190.0070.00017.35
8.1.180.0060.00318.10
8.1.170.0080.00018.59
8.1.160.0040.00418.95
8.1.150.0040.00418.86
8.1.140.0000.00718.95
8.1.130.0000.00720.13
8.1.120.0070.00317.64
8.1.110.0000.00717.64
8.1.100.0040.00417.59
8.1.90.0000.00717.53
8.1.80.0030.00417.67
8.1.70.0030.00317.56
8.1.60.0000.00817.71
8.1.50.0030.00517.55
8.1.40.0050.00317.65
8.1.30.0050.00217.79
8.1.20.0060.00317.74
8.1.10.0030.00717.58
8.1.00.0000.00817.70
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0000.00718.56
8.0.270.0000.00718.20
8.0.260.0000.00720.07
8.0.250.0030.00317.16
8.0.240.0030.00317.22
8.0.230.0000.00717.18
8.0.220.0070.00017.04
8.0.210.0030.00317.08
8.0.200.0060.00017.12
8.0.190.0030.00317.16
8.0.180.0060.00317.02
8.0.170.0030.00616.94
8.0.160.0030.00317.10
8.0.150.0000.00817.00
8.0.140.0030.00516.98
8.0.130.0060.00013.43
8.0.120.0060.00317.04
8.0.110.0000.00717.09
8.0.100.0000.00717.06
8.0.90.0060.00317.11
8.0.80.0140.00317.05
8.0.70.0040.00416.96
8.0.60.0050.00317.09
8.0.50.0040.00417.04
8.0.30.0110.00617.00
8.0.20.0060.01517.28
8.0.10.0040.00417.09
8.0.00.0110.01516.97
7.4.330.0000.00516.82
7.4.320.0000.00616.62
7.4.300.0070.00016.73
7.4.290.0040.00416.68
7.4.280.0040.00416.67
7.4.270.0030.00316.69
7.4.260.0050.00316.62
7.4.250.0000.00716.74
7.4.240.0030.00316.69
7.4.230.0000.00716.63
7.4.220.0070.00016.78
7.4.210.0080.01016.69
7.4.200.0000.00716.67
7.4.130.0130.00316.62
7.4.120.0130.00516.79
7.4.110.0080.00716.60
7.4.100.0110.01016.75
7.4.90.0100.00716.55
7.4.80.0030.01919.39
7.4.70.0070.01016.60
7.4.60.0130.00716.72
7.4.50.0070.01116.62
7.4.40.0080.01116.55
7.4.20.0060.01316.47
7.4.10.0000.01916.75
7.4.00.0070.01016.63
7.3.330.0060.00316.38
7.3.320.0020.00213.22
7.3.310.0000.00716.21
7.3.300.0030.00316.29
7.3.290.0090.00816.40
7.3.260.0100.00716.38
7.3.240.0090.00816.51
7.3.230.0140.00316.71
7.3.210.0180.00616.38
7.3.200.0080.00816.63
7.3.190.0030.01316.66
7.3.180.0000.01616.48
7.3.170.0170.00016.75
7.3.160.0120.00416.44
7.3.140.0120.00916.32
7.3.130.0030.01316.64
7.3.120.0170.00216.65
7.3.110.0090.01516.62
7.3.100.0060.01216.39
7.3.90.0160.00716.38
7.3.80.0120.01216.26
7.3.70.0070.01516.39
7.3.60.0130.00916.48
7.3.50.0060.01616.33
7.3.40.0090.01216.32
7.3.30.0090.01216.57
7.3.20.0150.00716.50
7.3.10.0090.00916.48
7.3.00.0090.00916.44
7.2.330.0090.00916.77
7.2.320.0070.01716.76
7.2.310.0100.00716.91
7.2.300.0090.00916.96
7.2.290.0070.01016.95
7.2.270.0110.00716.51
7.2.260.0070.01016.84
7.2.250.0130.01016.86
7.2.240.0110.01416.84
7.2.230.0170.00316.91
7.2.220.0070.01316.65
7.2.210.0100.01516.47
7.2.200.0070.01416.59
7.2.190.0100.01316.63
7.2.180.0120.01116.64
7.2.170.0120.00816.62
7.2.160.0070.01016.64
7.2.150.0060.01316.68
7.2.140.0070.01016.71
7.2.130.0080.01516.88
7.2.120.0150.00316.66
7.2.110.0030.02016.59
7.2.100.0130.00916.58
7.2.90.0070.01316.69
7.2.80.0120.00816.82
7.2.70.0030.01716.68
7.2.60.0090.01216.73
7.2.50.0170.00316.68
7.2.40.0060.01516.59
7.2.30.0160.00316.57
7.2.20.0040.01916.74
7.2.10.0120.00616.55
7.2.00.0120.00616.68

preferences:
34.27 ms | 403 KiB | 5 Q