3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'i must say hello to my handsome friends'; echo preg_replace_callback('/\b\w|\w\b/', fn($m) => strtoupper($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.5.00.0110.00920.33
8.4.150.0020.00014.05
8.4.140.0140.00817.77
8.4.130.0110.00818.73
8.4.120.0130.00624.18
8.4.110.0130.00718.96
8.4.100.0070.00518.62
8.4.90.0120.00618.92
8.4.80.0040.00518.96
8.4.70.0130.00718.09
8.4.60.0120.00718.82
8.4.50.0130.01020.74
8.4.40.0030.00717.97
8.4.30.0000.02018.68
8.4.20.0100.01018.26
8.4.10.0050.00319.50
8.3.280.0080.00818.64
8.3.270.0110.00816.76
8.3.260.0100.00816.87
8.3.250.0060.00318.86
8.3.240.0130.00617.38
8.3.230.0090.00416.70
8.3.220.0100.00919.04
8.3.210.0060.00318.60
8.3.200.0050.00416.71
8.3.190.0090.00817.18
8.3.180.0110.00817.09
8.3.170.0100.00720.76
8.3.160.0000.00817.11
8.3.150.0090.00917.13
8.3.140.0000.00716.64
8.3.130.0040.00418.49
8.3.120.0080.00319.10
8.3.110.0030.00620.94
8.3.100.0060.00324.06
8.3.90.0070.01326.77
8.3.80.0040.00418.30
8.3.70.0160.00316.88
8.3.60.0090.00616.48
8.3.50.0040.01118.56
8.3.40.0130.00721.95
8.3.30.0100.01318.72
8.3.20.0130.00721.81
8.3.10.0110.00621.82
8.3.00.0110.00719.12
8.2.290.0110.00820.25
8.2.280.0080.01118.58
8.2.270.0140.00317.34
8.2.260.0100.00317.06
8.2.250.0000.00817.52
8.2.240.0030.00617.29
8.2.230.0000.00822.58
8.2.220.0080.00037.54
8.2.210.0040.00426.77
8.2.200.0060.00316.75
8.2.190.0140.00716.58
8.2.180.0070.00716.88
8.2.170.0110.00318.92
8.2.160.0070.01119.08
8.2.150.0070.01019.28
8.2.140.0140.00420.57
8.2.130.0140.00020.50
8.2.120.0080.00619.39
8.2.110.0110.00319.27
8.2.100.0110.00319.02
8.2.90.0030.01219.08
8.2.80.0140.00419.39
8.2.70.0060.00918.88
8.2.60.0070.00718.82
8.2.50.0130.00319.14
8.2.40.0070.00719.03
8.2.30.0070.00718.79
8.2.20.0070.00719.00
8.2.10.0090.00618.91
8.2.00.0040.01118.78
8.1.330.0110.00721.82
8.1.320.0070.00116.09
8.1.310.0040.01118.32
8.1.300.0100.01018.48
8.1.290.0040.00730.84
8.1.280.0040.01425.92
8.1.270.0100.00322.08
8.1.260.0090.00521.96
8.1.250.0100.00322.04
8.1.240.0150.00018.74
8.1.230.0140.00018.75
8.1.220.0030.01019.04
8.1.210.0000.01518.68
8.1.200.0040.01118.79
8.1.190.0080.00618.63
8.1.180.0090.00618.41
8.1.170.0040.01118.86
8.1.160.0040.01118.73
8.1.150.0090.00618.73
8.1.140.0120.00318.62
8.1.130.0120.00318.92
8.1.120.0080.00818.80
8.1.110.0090.00618.68
8.1.100.0110.00419.93
8.1.90.0090.00618.63
8.1.80.0100.00619.88
8.1.70.0150.00418.67
8.1.60.0030.01518.79
8.1.50.0080.00818.69
8.1.40.0060.00918.80
8.1.30.0070.00718.66
8.1.20.0000.01519.98
8.1.10.0070.01018.92
8.1.00.0070.01418.60

preferences:
28.69 ms | 403 KiB | 5 Q