3v4l.org

run code in 300+ PHP versions simultaneously
<?php // transforms a U.S. date (MM/DD/YYYY) into a French date (DD/MM/YY) $a1 = '04/23/288'; // for test $a2 = preg_replace("/([\d]+)\/([\d]+)\/[\d]{1}([\d]){2}/", "$2/$1/$3", $a1); echo $a2; // must be '23/04/15'

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.0070.00718.29
8.3.50.0140.00822.05
8.3.40.0150.00018.82
8.3.30.0110.00419.02
8.3.20.0080.00023.57
8.3.10.0040.00421.82
8.3.00.0050.00319.51
8.2.180.0090.00618.50
8.2.170.0070.00722.96
8.2.160.0030.01020.44
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0000.00717.91
8.2.120.0070.00026.35
8.2.110.0060.00319.45
8.2.100.0120.00017.84
8.2.90.0000.00817.88
8.2.80.0000.00817.97
8.2.70.0000.00917.93
8.2.60.0000.00817.91
8.2.50.0040.00418.10
8.2.40.0050.00322.27
8.2.30.0000.00719.26
8.2.20.0050.00218.18
8.2.10.0050.00319.96
8.2.00.0040.00417.96
8.1.280.0090.00925.92
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0030.00528.09
8.1.240.0100.00022.09
8.1.230.0070.00419.16
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0030.00717.35
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0000.00918.54
8.1.160.0040.00418.85
8.1.150.0040.00420.16
8.1.140.0070.00019.54
8.1.130.0000.00818.91
8.1.120.0000.00717.41
8.1.110.0000.00817.43
8.1.100.0040.00417.59
8.1.90.0050.00217.58
8.1.80.0040.00417.58
8.1.70.0040.00417.55
8.1.60.0030.00517.70
8.1.50.0030.00617.48
8.1.40.0080.00017.60
8.1.30.0040.00417.60
8.1.20.0030.00517.70
8.1.10.0000.00717.64
8.1.00.0030.00617.65
8.0.300.0040.00419.84
8.0.290.0040.00416.88
8.0.280.0000.00818.51
8.0.270.0080.00016.96
8.0.260.0000.00817.19
8.0.250.0060.00317.08
8.0.240.0040.00417.06
8.0.230.0070.00017.06
8.0.220.0000.00716.98
8.0.210.0000.00717.00
8.0.200.0000.00717.03
8.0.190.0000.00717.07
8.0.180.0040.00417.04
8.0.170.0000.00716.95
8.0.160.0040.00417.05
8.0.150.0000.00816.75
8.0.140.0030.00516.91
8.0.130.0050.00013.36
8.0.120.0040.00416.94
8.0.110.0050.00517.07
8.0.100.0070.00016.95
8.0.90.0000.00716.86
8.0.80.0040.01117.00
8.0.70.0040.00416.84
8.0.60.0040.00416.82
8.0.50.0000.00717.04
8.0.30.0100.01217.08
8.0.20.0110.00817.43
8.0.10.0040.00417.21
8.0.00.0030.01417.04
7.4.330.0050.00015.55
7.4.320.0000.00616.67
7.4.300.0060.00016.79
7.4.290.0060.00316.61
7.4.280.0040.00416.56
7.4.270.0070.00016.66
7.4.260.0000.00716.61
7.4.250.0000.00816.66
7.4.240.0080.00016.65
7.4.230.0040.00416.45
7.4.220.0000.02016.81
7.4.210.0090.00616.75
7.4.200.0030.00616.58
7.4.160.0110.00616.69
7.4.150.0130.00517.40
7.4.140.0140.00717.86
7.4.130.0110.00616.63
7.4.120.0110.01116.61
7.4.110.0030.01316.71
7.4.100.0120.00616.72
7.4.90.0140.00316.38
7.4.80.0090.00919.39
7.4.70.0070.01116.84
7.4.60.0100.00616.71
7.4.50.0060.00916.78
7.4.40.0120.00616.70
7.4.30.0100.00616.57
7.4.00.0070.01015.26
7.3.330.0040.00413.15
7.3.320.0000.00613.13
7.3.310.0000.00716.50
7.3.300.0040.00416.30
7.3.290.0070.01016.39
7.3.280.0080.01116.38
7.3.270.0130.00717.40
7.3.260.0110.00616.39
7.3.250.0120.00416.43
7.3.240.0100.01116.47
7.3.230.0060.01016.36
7.3.210.0120.00616.38
7.3.200.0100.01019.39
7.3.190.0100.00616.35
7.3.180.0100.00616.59
7.3.170.0090.00916.88
7.3.160.0060.01116.38
7.2.330.0060.00916.73
7.2.320.0070.01716.82
7.2.310.0160.00616.84
7.2.300.0120.00616.61
7.2.290.0090.00916.71
7.2.60.0090.00617.09
7.2.50.0060.01017.03
7.1.200.0040.00815.96
7.1.70.0060.00617.04
7.1.60.0040.00817.30
7.1.10.0070.06322.28
7.1.00.0070.06322.41
7.0.200.0060.00916.86
7.0.150.0070.05721.89
7.0.140.0030.07021.90
7.0.130.0070.05721.91
7.0.120.0030.05721.82
7.0.110.0100.05721.72
7.0.100.0100.05021.82
7.0.90.0100.05721.92
7.0.80.0000.06721.97
7.0.70.0130.05021.83
7.0.60.0030.06021.79
7.0.50.0130.05022.00
7.0.40.0100.05021.90
7.0.30.0100.05321.93
7.0.20.0100.06321.98
7.0.10.0100.05321.76
7.0.00.0030.05721.93

preferences:
59.43 ms | 401 KiB | 5 Q