3v4l.org

run code in 300+ PHP versions simultaneously
<?php $camelTests = [ 'hereIsOne', 'andAnother', 'tryAThirdOne', 'kebab-case', 'getUuid', 'getUUID', 'snake_case', 'mysteryMethod1', 'printIf0Or1', 'itsAMeWario', 'acronymOMGInMiddle', 'DELIMITED_CONSTANT', 'a1AndA2', 'a1andA2', 'StudlyCase', 'FLOTUS', 'makePlanC', '4Life', 'wakeInTheAM', 'code1B35F2', '42', 'aB1c1De' ]; foreach ($camelTests as $test) { printf( "%s%s\n", str_pad($test, 20), preg_match('/^[a-z]+(?:[A-Z](?:[A-Z]?[a-z]+|\d+|$)|\d+)*$/', $test) ? 'PASS' : 'FAIL' ); }

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.0120.00920.05
8.4.150.0020.00114.05
8.4.140.0110.01017.67
8.4.130.0060.00322.28
8.4.120.0110.00920.54
8.4.110.0140.00618.77
8.4.100.0140.00617.95
8.4.90.0110.01020.23
8.4.80.0050.00319.16
8.4.70.0120.00818.83
8.4.60.0150.00519.12
8.4.50.0120.00820.43
8.4.40.0160.00317.93
8.4.30.0080.01120.39
8.4.20.0100.01018.07
8.4.10.0100.00019.46
8.3.280.0090.01120.22
8.3.270.0090.01016.54
8.3.260.0090.01016.60
8.3.250.0110.00717.12
8.3.240.0050.00316.76
8.3.230.0110.00816.93
8.3.220.0060.00818.85
8.3.210.0110.00418.69
8.3.200.0050.00416.93
8.3.190.0130.00618.97
8.3.180.0100.00518.74
8.3.170.0140.00416.90
8.3.160.0110.00718.43
8.3.150.0060.00318.81
8.3.140.0110.00719.18
8.3.130.0090.00918.42
8.3.120.0110.00719.10
8.3.110.0070.00418.44
8.3.100.0040.01516.69
8.3.90.0030.00526.77
8.3.80.0040.00817.97
8.3.70.0160.00618.43
8.3.60.0070.01117.00
8.3.50.0110.01116.52
8.3.40.0100.00721.85
8.3.30.0090.00918.95
8.3.20.0040.00424.18
8.3.10.0060.00324.66
8.3.00.0040.00426.16
8.2.290.0080.00117.45
8.2.280.0110.00818.70
8.2.270.0000.01417.17
8.2.260.0070.01019.10
8.2.250.0030.00618.59
8.2.240.0080.00820.52
8.2.230.0140.01120.94
8.2.220.0030.01416.88
8.2.210.0050.00526.77
8.2.200.0060.00316.50
8.2.190.0140.00016.75
8.2.180.0090.00918.42
8.2.170.0120.00918.93
8.2.160.0100.00322.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00421.04
8.2.110.0080.00322.38
8.2.100.0300.00318.44
8.2.90.0180.01318.44
8.2.80.0290.00018.44
8.2.70.0060.00919.73
8.2.60.0310.00018.44
8.2.50.0130.00018.44
8.2.40.0190.00418.81
8.2.30.0270.00018.44
8.2.20.0110.00419.60
8.2.10.0240.00318.44
8.2.00.0300.00318.44
8.1.330.0090.01116.48
8.1.320.0060.00918.26
8.1.310.0000.00818.65
8.1.300.0050.00318.54
8.1.290.0030.00630.84
8.1.280.0070.01125.92
8.1.270.0050.00324.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00319.42
8.1.230.0110.00819.12
8.1.220.0250.00418.44
8.1.210.0230.00818.44
8.1.200.0280.00018.44
8.1.190.0240.00318.44
8.1.180.0240.00318.44
8.1.170.0200.00718.44
8.1.160.0230.00518.44
8.1.150.0190.00918.44
8.1.140.0240.00318.44
8.1.130.0210.00718.44
8.1.120.0150.01218.44
8.1.110.0280.00018.44
8.1.100.0170.01018.44
8.1.90.0200.00918.44
8.1.80.0210.00718.44
8.1.70.0250.00318.44
8.1.60.0220.00518.44
8.1.50.0210.00618.44
8.1.40.0250.00218.44
8.1.30.0210.00518.44
8.1.20.0270.00018.44
8.1.10.0240.00318.44
8.1.00.0200.00718.44
8.0.300.0280.00018.44
8.0.290.0290.00418.44
8.0.280.0200.00818.44
8.0.270.0250.00418.44
8.0.260.0240.00318.44
8.0.250.0280.00018.44
8.0.240.0220.00518.44
8.0.230.0190.01018.44
8.0.220.0330.00018.44
8.0.210.0250.00318.44
8.0.200.0230.00818.44
8.0.190.0160.01218.44
8.0.180.0260.00318.44
8.0.170.0250.00318.44
8.0.160.0280.00018.44
8.0.150.0170.01018.44
8.0.140.0260.00418.44
8.0.130.0210.00918.44
8.0.120.0160.01218.44
8.0.110.0270.00018.44
8.0.100.0190.01218.44
8.0.90.0170.01018.44
8.0.80.0310.00318.44
8.0.70.0250.00418.44
8.0.60.0230.00318.44
8.0.50.0200.00618.44
8.0.30.0250.00318.44
8.0.20.0260.00318.44
8.0.10.0090.00318.44

preferences:
30.45 ms | 403 KiB | 5 Q