3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tests = [ '7hello', 'Fooey', 'Shoo3y', 'Whoa!', 'A1_B2_C3_', '_ABC', 'UB40', 'omg', 'Hi_', 'Stackoverflow_', ]; foreach ($tests as $test) { printf( "%s : %s\n", $test, preg_match('/^(?:[a-z]\w*){3}$/i', $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.30.0120.00619.36
8.5.20.0150.00220.17
8.5.10.0120.00519.80
8.5.00.0100.01020.15
8.4.180.0140.00819.80
8.4.170.0160.01020.42
8.4.160.0110.01023.90
8.4.150.0090.00416.88
8.4.140.0140.00717.77
8.4.130.0080.01318.87
8.4.120.0130.00723.90
8.4.110.0120.00820.39
8.4.100.0040.00418.88
8.4.90.0160.00420.50
8.4.80.0060.00318.62
8.4.70.0120.00818.13
8.4.60.0110.00818.94
8.4.50.0090.00218.13
8.4.40.0070.01020.69
8.4.30.0050.00318.77
8.4.20.0070.01320.38
8.4.10.0030.00622.08
8.3.300.0130.00820.93
8.3.290.0050.00720.80
8.3.280.0120.00820.29
8.3.270.0140.00716.50
8.3.260.0130.00616.46
8.3.250.0030.00519.05
8.3.240.0110.00717.09
8.3.230.0060.00516.92
8.3.220.0120.00719.00
8.3.210.0060.00916.95
8.3.200.0030.00616.75
8.3.190.0120.01018.89
8.3.180.0050.00318.28
8.3.170.0090.00918.84
8.3.160.0040.01418.42
8.3.150.0060.01318.94
8.3.140.0040.00417.32
8.3.130.0040.00418.46
8.3.120.0110.00018.78
8.3.110.0090.00020.94
8.3.100.0100.00024.06
8.3.90.0040.00426.77
8.3.80.0030.00618.68
8.3.70.0120.00418.43
8.3.60.0070.01118.23
8.3.50.0070.01116.85
8.3.40.0030.01720.20
8.3.30.0070.00718.91
8.3.20.0040.00424.18
8.3.10.0070.00024.66
8.3.00.0090.00026.16
8.2.300.0110.01124.04
8.2.290.0050.00320.56
8.2.280.0100.01118.50
8.2.270.0090.00016.63
8.2.260.0090.00918.94
8.2.250.0000.00720.51
8.2.240.0040.00417.34
8.2.230.0080.00022.58
8.2.220.0070.00337.54
8.2.210.0110.00426.77
8.2.200.0060.00318.41
8.2.190.0060.01216.63
8.2.180.0100.01016.88
8.2.170.0070.00722.96
8.2.160.0070.00722.96
8.2.150.0060.00325.66
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0080.00019.79
8.2.110.0090.00022.11
8.2.100.0030.00917.91
8.2.90.0050.00317.88
8.2.80.0000.00818.90
8.2.70.0040.00417.88
8.2.60.0000.01117.72
8.2.50.0170.00019.52
8.2.40.0130.00319.52
8.2.30.0080.00819.52
8.2.20.0120.00419.52
8.2.10.0080.00819.52
8.2.00.0100.00719.52
8.1.340.0120.00719.86
8.1.330.0080.00921.88
8.1.320.0120.00716.34
8.1.310.0040.00418.44
8.1.300.0090.00618.17
8.1.290.0030.00630.84
8.1.280.0130.00725.92
8.1.270.0070.00024.66
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0080.00018.91
8.1.230.0080.00317.57
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0000.00817.35
8.1.190.0000.00917.43
8.1.180.0000.00819.52
8.1.170.0120.00319.52
8.1.160.0080.00819.52
8.1.150.0160.00219.52
8.1.140.0070.00219.52
8.1.130.0000.01619.52
8.1.120.0110.00519.52
8.1.110.0080.00819.52
8.1.100.0060.01119.52
8.1.90.0100.00719.52
8.1.80.0110.00719.52
8.1.70.0110.00519.52
8.1.60.0110.00719.52
8.1.50.0060.01319.52
8.1.40.0110.00719.52
8.1.30.0170.00019.52
8.1.20.0130.00419.52
8.1.10.0150.00219.52
8.1.00.0170.00019.52
8.0.300.0060.00318.77
8.0.290.0040.00416.88
8.0.280.0120.00419.52
8.0.270.0180.00019.52
8.0.260.0120.00419.52
8.0.250.0100.00619.52
8.0.240.0130.00319.52
8.0.230.0160.00019.52
8.0.220.0000.01619.52
8.0.210.0130.00419.52
8.0.200.0100.00619.52
8.0.190.0100.00519.52
8.0.180.0000.01719.52
8.0.170.0100.00619.52
8.0.160.0120.00419.52
8.0.150.0100.00719.52
8.0.140.0110.00519.52
8.0.130.0080.00819.52
8.0.120.0080.00819.52
8.0.110.0080.00819.52
8.0.100.0180.00019.52
8.0.90.0170.00019.52
8.0.80.0140.00419.52
8.0.70.0120.00619.52
8.0.60.0140.00219.52
8.0.50.0060.00919.52
8.0.30.0090.00619.52
8.0.20.0100.00519.52
8.0.10.0170.00019.52

preferences:
53.26 ms | 1120 KiB | 5 Q