3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test(string $str): void { if (preg_match('~a|(u(x))|(v(y))~', $str, $matches) === 1) { var_dump($matches); } } test("vy");

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.4.120.0080.00719.60
8.4.110.0070.00318.31
8.4.100.0110.00918.01
8.4.90.0110.00920.62
8.4.80.0030.00619.07
8.4.70.0150.00620.80
8.4.60.0060.00520.39
8.4.50.0120.00818.71
8.4.40.0160.00317.88
8.4.30.0030.00520.77
8.4.20.0090.00619.95
8.4.10.0040.00419.46
8.3.250.0100.00916.67
8.3.240.0080.00516.48
8.3.230.0090.01016.63
8.3.220.0130.00618.83
8.3.210.0120.00716.54
8.3.200.0040.00516.77
8.3.190.0120.00617.05
8.3.180.0040.00318.76
8.3.170.0030.00617.10
8.3.160.0040.00420.78
8.3.150.0110.00817.29
8.3.140.0100.01018.79
8.3.130.0050.00318.73
8.3.120.0040.00418.81
8.3.110.0090.00016.77
8.3.100.0340.01437.54
8.3.90.0420.00637.54
8.3.80.0450.00937.54
8.3.70.0410.01237.54
8.3.60.0430.00437.54
8.3.50.0310.01337.54
8.3.40.0310.01037.54
8.3.30.0350.00537.54
8.3.20.0410.00337.54
8.3.10.0400.00037.54
8.3.00.0230.01237.54
8.2.290.0120.00816.48
8.2.280.0050.00518.33
8.2.270.0110.00716.81
8.2.260.0000.00817.00
8.2.250.0100.00716.91
8.2.240.0060.00317.01
8.2.230.0130.00620.94
8.2.220.0220.00337.54
8.2.210.0190.01537.54
8.2.200.0330.00737.54
8.2.190.0250.00937.54
8.2.180.0320.00737.54
8.2.170.0350.01237.54
8.2.160.0300.01537.54
8.2.150.0380.00637.54
8.2.140.0380.00737.54
8.2.130.0400.00437.54
8.2.120.0310.01437.54
8.2.110.0290.01537.54
8.2.100.0320.01237.54
8.2.90.0380.00737.54
8.2.80.0410.00337.54
8.2.70.0490.00337.54
8.2.60.0450.00937.54
8.2.50.0390.00437.54
8.2.40.0310.00637.54
8.2.30.0410.00037.54
8.2.20.0300.00737.54
8.2.10.0260.01337.54
8.2.00.0330.01137.54
8.1.330.0130.00516.10
8.1.320.0130.00617.92
8.1.310.0050.00216.84
8.1.300.0090.00017.88
8.1.290.0340.01037.54
8.1.280.0340.00437.54
8.1.270.0330.00337.54
8.1.260.0340.00737.54
8.1.250.0390.00737.54
8.1.240.0210.01837.54
8.1.230.0340.00637.54
8.1.220.0320.00637.54
8.1.210.0320.00637.54
8.1.200.0280.01237.54
8.1.190.0280.01637.54
8.1.180.0350.00037.54
8.1.170.0340.00737.54
8.1.160.0400.00037.54
8.1.150.0260.00737.54
8.1.140.0270.00737.54
8.1.130.0320.00637.54
8.1.120.0320.00637.54
8.1.110.0220.01037.54
8.1.100.0290.01037.54
8.1.90.0340.00637.54
8.1.80.0250.00837.54
8.1.70.0260.00337.54
8.1.60.0380.00037.54
8.1.50.0220.01337.54
8.1.40.0420.00037.54
8.1.30.0350.01037.54
8.1.20.0380.00437.54
8.1.10.0320.00937.54
8.1.00.0360.00837.54

preferences:
28.69 ms | 403 KiB | 5 Q