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(?(1)|\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.0140.00820.15
8.4.150.0030.00014.05
8.4.140.0110.01117.61
8.4.130.0120.00718.55
8.4.120.0070.00824.10
8.4.110.0100.01118.88
8.4.100.0140.00718.69
8.4.90.0060.00618.79
8.4.80.0130.00418.70
8.4.70.0030.00618.16
8.4.60.0100.01018.54
8.4.50.0120.00820.30
8.4.40.0070.00318.04
8.4.30.0120.00618.61
8.4.20.0070.01417.87
8.4.10.0060.00319.44
8.3.280.0110.00918.57
8.3.270.0090.01116.87
8.3.260.0080.01116.94
8.3.250.0080.01118.94
8.3.240.0070.01117.29
8.3.230.0060.00216.79
8.3.220.0110.00818.99
8.3.210.0080.01018.55
8.3.200.0030.00616.63
8.3.190.0120.00716.97
8.3.180.0110.00817.41
8.3.170.0110.00720.83
8.3.160.0120.00616.93
8.3.150.0040.01517.23
8.3.140.0060.01216.96
8.3.130.0050.00318.40
8.3.120.0030.00620.89
8.3.110.0060.00320.94
8.3.100.0060.00324.06
8.3.90.0040.00426.77
8.3.80.0030.00717.97
8.3.70.0060.00916.88
8.3.60.0040.01118.51
8.3.50.0040.01516.59
8.3.40.0110.00322.04
8.3.30.0060.01018.84
8.3.20.0080.00821.77
8.3.10.0130.00321.73
8.3.00.0100.00719.03
8.2.290.0130.00620.55
8.2.280.0030.00518.63
8.2.270.0110.00718.96
8.2.260.0030.01216.93
8.2.250.0040.00418.49
8.2.240.0000.00719.32
8.2.230.0030.00622.58
8.2.220.0080.00037.54
8.2.210.0030.00626.77
8.2.200.0060.00616.63
8.2.190.0180.00316.63
8.2.180.0180.00016.75
8.2.170.0120.00318.95
8.2.160.0120.00319.08
8.2.150.0120.00319.02
8.2.140.0100.00320.29
8.2.130.0100.00320.52
8.2.120.0110.00419.45
8.2.110.0130.00319.36
8.2.100.0170.00019.30
8.2.90.0000.01619.03
8.2.80.0120.00319.34
8.2.70.0100.00619.01
8.2.60.0060.00919.10
8.2.50.0100.00319.09
8.2.40.0100.00719.25
8.2.30.0090.00618.70
8.2.20.0040.01218.93
8.2.10.0060.00918.67
8.2.00.0100.00618.64
8.1.330.0130.00521.87
8.1.320.0110.00916.57
8.1.310.0040.00418.69
8.1.300.0130.00319.81
8.1.290.0090.00330.84
8.1.280.0090.00625.92
8.1.270.0000.01521.98
8.1.260.0150.00021.95
8.1.250.0120.00322.18
8.1.240.0060.01018.74
8.1.230.0100.00718.66
8.1.220.0130.00319.00
8.1.210.0090.00618.45
8.1.200.0100.00718.76
8.1.190.0060.00918.69
8.1.180.0100.00718.55
8.1.170.0040.01118.77
8.1.160.0120.00318.64
8.1.150.0110.00418.61
8.1.140.0120.00318.57
8.1.130.0040.01118.79
8.1.120.0170.00018.75
8.1.110.0130.00318.55
8.1.100.0100.00719.87
8.1.90.0070.01118.67
8.1.80.0110.00719.65
8.1.70.0120.00318.54
8.1.60.0040.01218.76
8.1.50.0120.00318.79
8.1.40.0060.01318.75
8.1.30.0070.01118.88
8.1.20.0070.01320.08
8.1.10.0130.00318.68
8.1.00.0150.00018.74

preferences:
28.97 ms | 403 KiB | 5 Q