3v4l.org

run code in 300+ PHP versions simultaneously
<?php $className = 'getADog'; $result = strtolower(preg_replace('/[a-zA-Z]\K(?=[A-Z])/', '-', $className)); echo $result;

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.0090.00916.93
8.5.00.0120.00820.18
8.4.160.0140.00923.79
8.4.150.0030.00014.05
8.4.140.0090.01217.86
8.4.130.0130.00617.89
8.4.120.0110.00920.53
8.4.110.0110.00922.51
8.4.100.0120.01018.71
8.4.90.0120.00818.76
8.4.80.0040.00418.67
8.4.70.0100.01118.21
8.4.60.0130.00818.67
8.4.50.0090.01220.29
8.4.40.0040.01817.75
8.4.30.0060.00918.93
8.4.20.0130.00618.19
8.4.10.0130.00619.48
8.3.290.0110.00820.62
8.3.280.0140.01118.53
8.3.270.0100.00916.42
8.3.260.0100.01116.66
8.3.250.0120.00718.69
8.3.240.0110.00917.04
8.3.230.0110.00816.40
8.3.220.0060.00218.69
8.3.210.0090.00918.34
8.3.200.0060.00216.60
8.3.190.0100.00817.05
8.3.180.0080.00816.91
8.3.170.0110.00420.61
8.3.160.0100.01017.25
8.3.150.0040.00416.99
8.3.140.0150.00019.00
8.3.130.0040.00416.86
8.3.120.0060.00320.36
8.3.110.0080.00316.68
8.3.100.0030.00618.59
8.3.90.0040.00426.77
8.3.80.0090.00018.31
8.3.70.0080.00818.68
8.3.60.0150.00316.77
8.3.50.0120.00616.50
8.3.40.0110.00321.77
8.3.30.0070.01318.73
8.3.20.0070.01321.90
8.3.10.0140.00321.73
8.3.00.0090.00619.08
8.2.300.0140.00618.86
8.2.290.0110.00820.55
8.2.280.0110.00918.70
8.2.270.0070.01118.96
8.2.260.0030.00618.58
8.2.250.0060.00318.50
8.2.240.0000.00917.09
8.2.230.0030.00620.94
8.2.220.0030.00624.06
8.2.210.0030.00626.77
8.2.200.0030.00618.79
8.2.190.0110.00416.75
8.2.180.0040.01118.66
8.2.170.0060.01122.96
8.2.160.0150.00020.52
8.2.150.0100.00619.08
8.2.140.0120.00320.37
8.2.130.0030.01320.35
8.2.120.0090.00619.45
8.2.110.0100.00719.22
8.2.100.0110.00419.30
8.2.90.0160.00019.09
8.2.80.0000.01619.10
8.2.70.0120.00319.05
8.2.60.0090.00618.89
8.2.50.0120.00319.10
8.2.40.0000.01518.91
8.2.30.0110.00418.95
8.2.20.0130.00318.92
8.2.10.0120.00319.09
8.2.00.0040.01118.91
8.1.340.0110.00817.91
8.1.330.0090.00921.65
8.1.320.0110.01016.43
8.1.310.0070.01118.63
8.1.300.0090.00018.30
8.1.290.0100.00030.84
8.1.280.0120.00925.92
8.1.270.0110.00422.20
8.1.260.0030.01222.00
8.1.250.0000.01522.14
8.1.240.0130.00318.58
8.1.230.0130.00318.50
8.1.220.0100.00719.02
8.1.210.0120.00418.44
8.1.200.0090.00618.67
8.1.190.0070.00718.68
8.1.180.0000.01518.55
8.1.170.0100.00318.61
8.1.160.0070.00718.40
8.1.150.0070.00718.63
8.1.140.0060.00918.59
8.1.130.0130.00318.61
8.1.120.0070.01018.58
8.1.110.0130.00318.46
8.1.100.0030.01219.86
8.1.90.0030.01318.50
8.1.80.0040.01119.86
8.1.70.0140.00318.52
8.1.60.0110.00818.77
8.1.50.0070.01018.75
8.1.40.0130.00318.75
8.1.30.0030.01018.82
8.1.20.0110.00419.89
8.1.10.0070.01018.72
8.1.00.0110.00718.41

preferences:
39.39 ms | 403 KiB | 5 Q