3v4l.org

run code in 500+ PHP versions simultaneously
<?php $start_date2='10-30-2022'; //date format inccorect $start_date2=str_replace('-','/',$start_date2); // correct date format echo $new_date = date("Y-m-d", strtotime($start_date2)); // now you will get correct result

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.70.0090.00918.68
8.5.60.0090.00817.08
8.5.50.0070.01016.73
8.5.30.0090.00719.39
8.5.20.0100.00819.54
8.5.10.0090.00820.14
8.5.00.0080.01420.05
8.4.210.0140.00719.50
8.4.180.0130.00824.01
8.4.170.0130.00919.90
8.4.160.0110.01223.96
8.4.150.0090.00416.86
8.4.140.0080.01317.77
8.4.130.0090.01017.48
8.4.120.0110.01020.58
8.4.110.0090.00422.32
8.4.100.0130.00720.65
8.4.90.0140.00620.55
8.4.80.0100.01017.68
8.4.70.0090.01118.99
8.4.60.0150.00618.99
8.4.50.0060.01022.44
8.4.40.0160.00319.54
8.4.30.0160.00318.82
8.4.20.0030.00619.71
8.4.10.0060.00323.81
8.3.300.0130.00720.53
8.3.290.0110.01020.80
8.3.280.0140.00718.60
8.3.270.0120.00716.70
8.3.260.0130.00616.82
8.3.250.0020.00719.05
8.3.240.0090.00817.21
8.3.230.0090.01116.35
8.3.220.0060.00218.99
8.3.210.0090.00918.62
8.3.200.0050.00316.48
8.3.190.0090.00817.14
8.3.180.0050.00318.35
8.3.170.0120.00617.25
8.3.160.0120.00616.84
8.3.150.0110.00718.92
8.3.140.0080.00019.23
8.3.130.0140.00418.45
8.3.120.0060.00320.75
8.3.110.0090.00020.94
8.3.100.0050.00324.06
8.3.90.0110.00726.77
8.3.80.0060.00316.61
8.3.70.0070.00716.88
8.3.60.0100.01016.88
8.3.50.0070.01018.37
8.3.40.0070.00720.26
8.3.30.0150.00418.96
8.3.20.0040.00424.18
8.3.10.0000.00724.66
8.3.00.0050.00226.16
8.2.300.0090.00922.28
8.2.290.0110.00720.59
8.2.280.0050.00418.28
8.2.270.0110.00717.42
8.2.260.0090.00018.92
8.2.250.0210.00016.50
8.2.240.0090.00618.80
8.2.230.0040.00422.58
8.2.220.0090.00037.54
8.2.210.0060.01326.77
8.2.200.0060.00316.50
8.2.190.0130.01016.75
8.2.180.0120.00625.92
8.2.170.0130.00719.04
8.2.160.0100.00722.96
8.2.150.0080.00025.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00421.13
8.2.110.0030.00720.35
8.2.100.0040.00818.03
8.2.90.0000.00817.88
8.2.80.0000.00818.86
8.2.70.0040.00417.75
8.2.60.0000.00818.03
8.2.50.0050.00318.07
8.2.40.0000.00718.16
8.2.30.0040.00418.12
8.2.20.0040.00420.53
8.2.10.0040.00418.15
8.2.00.0000.00719.33
8.1.340.0110.00517.66
8.1.330.0130.00522.05
8.1.320.0100.00916.19
8.1.310.0100.00216.32
8.1.300.0080.00818.22
8.1.290.0030.00630.84
8.1.280.0110.00425.92
8.1.270.0070.00022.20
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0040.00421.96
8.1.230.0070.00417.70
8.1.220.0000.00817.78
8.1.210.0040.00418.77
8.1.200.0040.00417.47
8.1.190.0040.00417.36
8.1.180.0050.00519.05
8.1.170.0030.00518.59
8.1.160.0040.00418.76
8.1.150.0000.00718.77
8.1.140.0030.00617.49
8.1.130.0000.00717.56
8.1.120.0060.00817.55
8.1.110.0130.00317.53
8.1.100.0110.00317.61
8.1.90.0130.00017.61
8.1.80.0090.00517.62
8.1.70.0170.00017.53
8.1.60.0150.00217.74
8.1.50.0120.00517.62
8.1.40.0180.00017.68
8.1.30.0070.01417.74
8.1.20.0150.00417.75
8.1.10.0110.00817.52
8.1.00.0170.00217.55
8.0.300.0030.00518.77
8.0.290.0050.00316.88
8.0.280.0000.00818.56
8.0.270.0030.00318.20
8.0.260.0030.00317.02
8.0.250.0080.00817.07
8.0.240.0070.00716.98
8.0.230.0090.00616.99
8.0.220.0080.00816.92
8.0.210.0070.00917.00
8.0.200.0140.00316.96
8.0.190.0160.00017.06
8.0.180.0120.00517.05
8.0.170.0140.00317.05
8.0.160.0110.00516.99
8.0.150.0060.01216.93
8.0.140.0050.01016.85
8.0.130.0150.00316.93
8.0.120.0140.00416.95
8.0.110.0100.00516.99
8.0.100.0160.00016.86
8.0.90.0130.00416.99
8.0.80.0050.01016.94
8.0.70.0050.01016.89
8.0.60.0170.00016.94
8.0.50.0130.00416.98
8.0.30.0110.00616.90
8.0.20.0110.00316.96
8.0.10.0100.00517.09
7.4.330.0080.00515.55
7.4.320.0110.00716.61
7.4.300.0180.00016.46
7.4.290.0140.00316.59
7.4.280.0080.00816.56
7.4.270.0100.00716.46
7.4.260.0170.00016.42
7.4.250.0160.00316.43
7.4.240.0090.00616.53
7.4.230.0180.00016.60
7.4.220.0140.00016.54
7.4.210.0060.00616.45
7.4.200.0080.00516.46
7.4.190.0100.00216.60
7.4.180.0090.00616.68
7.4.160.0060.00416.70
7.4.150.0100.00516.53
7.4.140.0060.00916.52
7.4.130.0110.00516.40
7.4.120.0150.00016.35
7.4.110.0120.00316.46
7.4.100.0050.01016.44
7.4.90.0110.00316.47
7.4.80.0120.00316.35
7.4.70.0050.01016.48
7.4.60.0090.00616.54
7.4.50.0070.00716.32
7.4.40.0150.00016.43
7.4.30.0130.00316.39
7.4.20.0140.00316.47
7.4.10.0160.00016.47
7.4.00.0100.00316.38

preferences:
78.3 ms | 1249 KiB | 5 Q