3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ "Dec 23 21:37:56 hello", "Jan 12 02:07:23 hello", "Jun 3 23:34:34 hello", "Dec 25 12:47:51 hello" ]; var_export( preg_replace_callback( '/^([a-z]{3}) +\d+/i', function($m) { static $encounteredJan = false; $encounteredJan = $encounteredJan || $m[1] === 'Jan'; return date('Y m d', strtotime($m[0] . ($encounteredJan ? '' : ' -1 year'))); }, $arr ) );

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.4.120.0070.01324.02
8.4.110.0120.01022.49
8.4.100.0090.01018.26
8.4.90.0110.00918.84
8.4.80.0060.00318.14
8.4.70.0090.00718.28
8.4.60.0100.01218.64
8.4.50.0090.00218.39
8.4.40.0090.00620.77
8.4.30.0100.00720.55
8.4.20.0070.01320.10
8.4.10.0120.00821.82
8.3.250.0110.00719.05
8.3.240.0090.01016.92
8.3.230.0090.00416.69
8.3.220.0010.00717.13
8.3.210.0100.00816.79
8.3.200.0060.00616.89
8.3.190.0080.01017.10
8.3.180.0040.00418.50
8.3.170.0090.00919.00
8.3.160.0120.00618.54
8.3.150.0130.00619.00
8.3.140.0120.00617.07
8.3.130.0030.00518.69
8.3.120.0090.00019.02
8.3.110.0100.01020.94
8.3.100.0040.00416.79
8.3.90.0040.00416.89
8.3.80.0090.00018.43
8.3.70.0210.00016.63
8.3.60.0110.01118.56
8.3.50.0140.00718.68
8.3.40.0070.00720.52
8.3.30.0090.00619.23
8.3.20.0000.00824.18
8.3.10.0100.00024.66
8.3.00.0080.00026.16
8.2.290.0080.01020.49
8.2.280.0050.00320.24
8.2.270.0130.00419.14
8.2.260.0030.00617.25
8.2.250.0090.00618.79
8.2.240.0120.00417.60
8.2.230.0060.00322.58
8.2.220.0120.00324.06
8.2.210.0120.00626.77
8.2.200.0060.00316.75
8.2.190.0100.00718.77
8.2.180.0070.01325.92
8.2.170.0110.00419.33
8.2.160.0070.00722.96
8.2.150.0110.00425.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00420.02
8.2.110.0070.00419.27
8.2.100.0040.01118.09
8.2.90.0040.00718.00
8.2.80.0060.00319.11
8.2.70.0050.00518.13
8.2.60.0000.00818.05
8.2.50.0040.00418.13
8.2.40.0000.00818.41
8.2.30.0080.00018.21
8.2.20.0030.00719.32
8.2.10.0000.01319.29
8.2.00.0030.00719.45
8.1.330.0110.00720.28
8.1.320.0120.00916.57
8.1.310.0100.00718.40
8.1.300.0030.01518.37
8.1.290.0110.00030.84
8.1.280.0130.00325.92
8.1.270.0100.00324.66
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0060.00319.50
8.1.230.0060.00617.89
8.1.220.0000.00817.90
8.1.210.0060.00318.77
8.1.200.0100.00017.72
8.1.190.0000.00817.60
8.1.180.0030.00518.10
8.1.170.0000.00818.88
8.1.160.0030.00519.17
8.1.150.0050.01019.02
8.1.140.0090.00319.01
8.1.130.0110.00019.03
8.1.120.0050.00719.02
8.1.110.0070.00719.09
8.1.100.0130.00419.10
8.1.90.0080.00518.99
8.1.80.0000.01419.10
8.1.70.0110.00318.98
8.1.60.0120.00419.10
8.1.50.0040.00919.00
8.1.40.0130.00419.18
8.1.30.0170.00319.26
8.1.20.0130.00719.06
8.1.10.0040.01118.93
8.1.00.0150.00418.96
8.0.300.0030.00718.77
8.0.290.0060.00317.13
8.0.280.0040.00418.61
8.0.270.0080.00418.42
8.0.260.0120.00018.42
8.0.250.0090.00418.49
8.0.240.0080.00418.30
8.0.230.0070.00518.46
8.0.220.0030.01118.35
8.0.210.0040.00418.32
8.0.200.0050.00518.42
8.0.190.0120.00218.48
8.0.180.0060.00918.49
8.0.170.0090.00518.38
8.0.160.0110.00218.47
8.0.150.0100.00318.32
8.0.140.0100.00318.30
8.0.130.0060.00618.41
8.0.120.0070.00718.32
8.0.110.0000.01318.41
8.0.100.0100.00318.40
8.0.90.0070.00718.42
8.0.80.0050.00918.43
8.0.70.0070.00718.46
8.0.60.0110.00418.34
8.0.50.0090.00518.38
8.0.30.0060.00818.29
8.0.20.0070.00518.35
8.0.10.0050.00918.47

preferences:
26.65 ms | 403 KiB | 5 Q