3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo preg_replace_callback('/\b[^\s]*a\b/i', fn($matches) => str_replace("a", "o", $matches[0]), 'kak kaka aaak aaa');

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.130.0040.00418.46
8.3.120.0000.00820.66
8.3.110.0060.00320.94
8.3.100.0060.00324.06
8.3.90.0090.00626.77
8.3.80.0090.00317.97
8.3.70.0150.00616.50
8.3.60.0120.01216.63
8.3.50.0000.01518.63
8.3.40.0100.01022.04
8.3.30.0120.00318.84
8.3.20.0040.00424.18
8.3.10.0030.00524.66
8.3.00.0040.00426.16
8.2.250.0030.00618.71
8.2.240.0030.00618.94
8.2.230.0030.00622.58
8.2.220.0030.00637.54
8.2.210.0030.00626.77
8.2.200.0040.00716.38
8.2.190.0110.01117.00
8.2.180.0150.00618.26
8.2.170.0120.00322.96
8.2.160.0070.00722.96
8.2.150.0050.00225.66
8.2.140.0000.00724.66
8.2.130.0000.00826.16
8.2.120.0040.00426.16
8.2.110.0030.00620.36
8.2.100.0080.00417.78
8.2.90.0050.00317.96
8.2.80.0040.00421.20
8.2.70.0080.00017.75
8.2.60.0190.00017.63
8.2.50.0110.00817.63
8.2.40.0170.00017.88
8.2.30.0140.00417.75
8.2.20.0120.00417.50
8.2.10.0110.00617.75
8.2.00.0160.00017.63
8.1.300.0090.00018.29
8.1.290.0030.00730.84
8.1.280.0090.00925.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0030.00720.67
8.1.230.0040.00822.74
8.1.220.0030.00517.78
8.1.210.0070.00318.91
8.1.200.0060.00317.48
8.1.190.0110.00617.13
8.1.180.0040.01217.11
8.1.170.0110.00717.23
8.1.160.0170.00017.50
8.1.150.0150.00517.38
8.1.140.0120.00417.13
8.1.130.0110.00517.25
8.1.120.0100.00617.38
8.1.110.0090.00917.50
8.1.100.0200.00017.25
8.1.90.0160.00017.25
8.1.80.0070.00917.13
8.1.70.0110.00717.25
8.1.60.0140.00317.63
8.1.50.0120.00617.63
8.1.40.0040.01517.47
8.1.30.0160.00217.50
8.1.20.0110.01117.38
8.1.10.0170.00017.48
8.1.00.0060.01117.10
8.0.300.0030.00619.86
8.0.290.0000.00716.63
8.0.280.0100.00516.75
8.0.270.0170.00016.61
8.0.260.0130.00416.84
8.0.250.0000.01616.73
8.0.240.0120.00316.88
8.0.230.0120.00616.59
8.0.220.0040.01316.52
8.0.210.0110.00516.52
8.0.200.0170.00016.52
8.0.190.0080.00816.52
8.0.180.0160.00016.52
8.0.170.0170.00216.74
8.0.160.0160.00316.52
8.0.150.0170.00016.63
8.0.140.0160.00416.74
8.0.130.0070.01116.63
8.0.120.0070.01116.74
8.0.110.0120.00416.52
8.0.100.0120.00416.52
8.0.90.0180.00016.52
8.0.80.0090.00716.63
8.0.70.0100.00516.74
8.0.60.0110.00416.52
8.0.50.0110.00516.52
8.0.30.0040.01416.85
8.0.20.0120.00416.75
8.0.10.0110.00416.52

preferences:
29.76 ms | 403 KiB | 5 Q