3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tests = [ 'getADogThenROCKInTheUSA', 'SomeOfTheWords', 'getADog', 'ADog', 'aDog', 'XML', 'SimpleXMLReader', 'FREE4NOW', '123ABC', 'DEF456', 'ghi789', 'wtf666Omg', 'PHP8Point3', ]; foreach ($tests as $test) { printf("%25s => %s\n", $test, strtolower(preg_replace('/(?>[A-Z]?[a-z]+|[A-Z]+(?=[A-Z][a-z]|[^A-Za-z])|[^A-Za-z]+)\K(?!$)/', '-', $test))); }

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.10.0120.00716.83
8.5.00.0120.01020.29
8.4.160.0040.00821.99
8.4.150.0020.00114.05
8.4.140.0120.00817.89
8.4.130.0070.00819.95
8.4.120.0150.00522.26
8.4.110.0150.00522.35
8.4.100.0060.00318.71
8.4.90.0090.01019.01
8.4.80.0110.00920.36
8.4.70.0050.00618.16
8.4.60.0120.00918.89
8.4.50.0120.01017.77
8.4.40.0070.01417.74
8.4.30.0100.01018.51
8.4.20.0130.00717.80
8.4.10.0050.00519.63
8.3.290.0060.00320.93
8.3.280.0090.01118.64
8.3.270.0120.00916.64
8.3.260.0070.00116.66
8.3.250.0110.00918.74
8.3.240.0100.00916.98
8.3.230.0100.01016.88
8.3.220.0040.00418.88
8.3.210.0060.00216.82
8.3.200.0050.00716.66
8.3.190.0130.00616.41
8.3.180.0110.00616.73
8.3.170.0090.00620.88
8.3.160.0140.00316.96
8.3.150.0130.00617.18
8.3.140.0030.00517.24
8.3.130.0040.00418.48
8.3.120.0050.00318.85
8.3.110.0090.00020.94
8.3.100.0030.00524.06
8.3.90.0070.01326.77
8.3.80.0090.00018.68
8.3.70.0110.00716.75
8.3.60.0090.00616.71
8.3.50.0000.01516.73
8.3.40.0140.00721.96
8.3.30.0120.00618.77
8.3.20.0130.00321.89
8.3.10.0100.00721.65
8.3.00.0100.00618.95
8.2.300.0130.00820.34
8.2.290.0120.00620.45
8.2.280.0090.00918.28
8.2.270.0070.01117.17
8.2.260.0040.00418.42
8.2.250.0040.00416.79
8.2.240.0040.00417.13
8.2.230.0060.00322.58
8.2.220.0080.00037.54
8.2.210.0190.00026.77
8.2.200.0060.00318.55
8.2.190.0110.01118.42
8.2.180.0150.00616.38
8.2.170.0110.00422.96
8.2.160.0140.00019.47
8.2.150.0090.00618.84
8.2.140.0040.01120.45
8.2.130.0110.00320.52
8.2.120.0060.01019.23
8.2.110.0140.00019.17
8.2.100.0120.00419.22
8.2.90.0090.00619.03
8.2.80.0150.00019.29
8.2.70.0080.00818.96
8.2.60.0110.00619.02
8.2.50.0090.00618.97
8.2.40.0060.00919.09
8.2.30.0100.00619.04
8.2.20.0100.00718.77
8.2.10.0120.00618.97
8.2.00.0110.00718.98
8.1.330.0050.00422.25
8.1.320.0100.01118.13
8.1.310.0030.00518.41
8.1.300.0040.00420.27
8.1.290.0140.00530.84
8.1.280.0070.00725.92
8.1.270.0110.00722.06
8.1.260.0100.00622.03
8.1.250.0120.00322.09
8.1.240.0110.00718.74
8.1.230.0030.01318.61
8.1.220.0120.00418.74
8.1.210.0120.00318.64
8.1.200.0110.00418.68
8.1.190.0120.00318.72
8.1.180.0070.01018.55
8.1.170.0110.00418.89
8.1.160.0070.01018.49
8.1.150.0160.00018.67
8.1.140.0070.00718.61
8.1.130.0140.00018.82
8.1.120.0000.01518.70
8.1.110.0060.00918.56
8.1.100.0150.00319.98
8.1.90.0070.01118.65
8.1.80.0040.01219.84
8.1.70.0100.00718.63
8.1.60.0130.00318.84
8.1.50.0160.00318.73
8.1.40.0120.00618.64
8.1.30.0130.00718.81
8.1.20.0100.00720.05
8.1.10.0060.01018.79
8.1.00.0130.00318.62

preferences:
36.62 ms | 403 KiB | 5 Q