3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match('/(one|foo(*:first)|bar(*:second))([x])/', 'onex', $matches); var_dump($matches);

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.0100.00916.42
8.5.00.0130.00820.04
8.4.150.0070.00716.90
8.4.140.0120.01117.73
8.4.130.0090.01119.15
8.4.120.0130.00722.32
8.4.110.0080.00418.73
8.4.100.0090.01218.86
8.4.90.0130.00720.65
8.4.80.0040.00419.04
8.4.70.0150.00518.90
8.4.60.0060.00218.69
8.4.50.0060.00218.64
8.4.40.0070.01417.75
8.4.30.0100.01020.54
8.4.20.0120.00619.56
8.4.10.0170.00319.50
8.3.280.0030.00014.05
8.3.270.0110.00916.72
8.3.260.0140.00516.57
8.3.250.0080.01117.25
8.3.240.0090.00716.71
8.3.230.0110.00816.54
8.3.220.0030.00618.65
8.3.210.0060.00218.28
8.3.200.0060.00316.80
8.3.190.0090.01016.53
8.3.180.0070.00318.34
8.3.170.0120.00617.04
8.3.160.0190.00018.52
8.3.150.0100.01018.45
8.3.140.0000.00816.57
8.3.130.0050.00316.71
8.3.120.0120.00320.79
8.3.110.0050.00316.79
8.3.100.0150.00018.43
8.3.90.0340.01416.34
8.3.80.0510.00316.25
8.3.70.0260.01116.50
8.3.60.0270.00316.38
8.3.50.0270.00416.38
8.3.40.0310.00417.49
8.3.30.0320.00017.25
8.3.20.0260.00617.50
8.3.10.0280.01217.38
8.3.00.0310.00617.50
8.2.290.0050.00420.16
8.2.280.0120.00720.18
8.2.270.0090.00920.91
8.2.260.0000.00816.43
8.2.250.0130.00618.47
8.2.240.0030.00617.18
8.2.230.0060.00320.94
8.2.220.0080.00037.54
8.2.210.0250.00616.19
8.2.200.0290.00716.25
8.2.190.0100.01016.38
8.2.180.0190.00616.13
8.2.170.0270.00417.50
8.2.160.0200.00017.63
8.2.150.0200.00017.63
8.2.140.0200.00017.38
8.2.130.0180.01317.13
8.2.120.0280.01217.35
8.2.110.0460.00317.25
8.2.100.0350.00917.38
8.2.90.0330.00917.63
8.2.80.0290.00317.50
8.2.70.0130.00517.25
8.2.60.0170.00017.38
8.2.50.0000.01217.50
8.2.40.0080.00817.50
8.2.30.0180.00317.50
8.2.20.0170.00317.50
8.2.10.0340.00617.38
8.2.00.0380.00317.50
8.1.330.0210.00821.89
8.1.320.0080.00818.03
8.1.310.0140.00416.55
8.1.300.0030.00620.13
8.1.290.0280.00416.38
8.1.280.0240.00015.87
8.1.270.0320.01117.13
8.1.260.0230.00817.00
8.1.250.0120.01217.13
8.1.240.0070.01517.25
8.1.230.0220.00016.87
8.1.220.0190.00316.98
8.1.210.0210.00017.25
8.1.200.0190.00017.13
8.1.190.0170.00317.25
8.1.180.0210.00016.84
8.1.170.0160.00417.13
8.1.160.0180.00317.13
8.1.150.0210.00017.13
8.1.140.0150.00616.97
8.1.130.0170.00716.75
8.1.120.0200.00517.00
8.1.110.0170.00717.00
8.1.100.0170.00317.25
8.1.90.0200.00316.86
8.1.80.0150.00617.13
8.1.70.0190.00517.13
8.1.60.0180.00416.85
8.1.50.0230.00017.38
8.1.40.0170.00417.38
8.1.30.0170.00317.13
8.1.20.0210.00017.13
8.1.10.0190.00217.38
8.1.00.0140.00817.25

preferences:
72.33 ms | 403 KiB | 5 Q