3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'Chicago41Illinos9'; var_export( preg_replace_callback( '/\d+$/', fn($m) => ++$m[0], $string ) );

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.0040.00524.16
8.4.110.0110.00918.40
8.4.100.0100.01018.80
8.4.90.0060.00418.61
8.4.80.0080.01118.60
8.4.70.0080.01118.20
8.4.60.0060.00418.62
8.4.50.0090.00218.80
8.4.40.0120.00618.18
8.4.30.0130.00618.79
8.4.20.0070.01419.77
8.4.10.0060.00319.55
8.3.250.0100.00818.93
8.3.240.0110.00819.12
8.3.230.0130.00616.98
8.3.220.0040.00618.99
8.3.210.0130.00616.78
8.3.200.0050.00416.61
8.3.190.0090.00617.35
8.3.180.0070.00017.39
8.3.170.0150.00320.56
8.3.160.0100.01017.33
8.3.150.0100.01017.22
8.3.140.0140.00416.68
8.3.130.0100.00018.44
8.3.120.0030.00620.79
8.3.110.0140.00320.94
8.3.100.0040.00417.01
8.3.90.0040.00416.88
8.3.80.0000.01018.81
8.3.70.0110.00418.29
8.3.60.0290.01218.00
8.3.50.0200.00318.37
8.3.40.0200.01619.00
8.3.30.0240.00717.50
8.3.20.0290.00617.50
8.3.10.0270.00317.38
8.3.00.0220.01217.50
8.2.290.0100.01020.18
8.2.280.0100.00918.54
8.2.270.0110.00717.33
8.2.260.0060.00318.52
8.2.250.0100.00619.14
8.2.240.0090.00918.88
8.2.230.0130.00322.58
8.2.220.0080.00324.06
8.2.210.0090.00026.77
8.2.200.0050.00518.54
8.2.190.0270.00416.36
8.2.180.0280.00616.50
8.2.170.0330.00619.63
8.2.160.0270.00917.63
8.2.150.0240.01217.75
8.2.140.0180.01817.38
8.2.130.0220.01517.25
8.2.120.0310.00617.25
8.2.110.0230.01017.50
8.2.100.0280.01217.38
8.2.90.0260.01117.61
8.2.80.0210.01219.16
8.2.70.0180.01817.38
8.2.60.0330.00017.38
8.2.50.0270.00717.38
8.2.40.0300.00417.63
8.2.30.0280.00617.38
8.2.20.0250.00617.50
8.2.10.0270.00317.37
8.2.00.0280.00817.38
8.1.330.0120.00922.25
8.1.320.0110.00718.36
8.1.310.0050.00318.28
8.1.300.0000.01117.93
8.1.290.0030.00618.88
8.1.280.0300.00617.83
8.1.270.0270.01217.13
8.1.260.0420.00417.25
8.1.250.0290.01318.93
8.1.240.0200.00817.23
8.1.230.0260.00317.48
8.1.220.0270.00417.36
8.1.210.0250.00617.50
8.1.200.0270.00617.36
8.1.190.0240.00717.25
8.1.180.0260.00317.25
8.1.170.0230.01017.38
8.1.160.0250.01119.00
8.1.150.0250.00417.23
8.1.140.0250.00717.25
8.1.130.0280.00617.13
8.1.120.0290.00417.25
8.1.110.0290.00617.22
8.1.100.0240.00717.13
8.1.90.0160.01617.38
8.1.80.0240.01219.13
8.1.70.0330.00017.38
8.1.60.0360.00017.50
8.1.50.0290.00417.25
8.1.40.0280.00617.48
8.1.30.0320.00317.50
8.1.20.0230.01019.29
8.1.10.0340.00417.13
8.1.00.0290.00416.88

preferences:
26.34 ms | 403 KiB | 5 Q