3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(preg_match('/.*/', hex2bin('ff'))); var_dump(preg_match('/^$/', hex2bin('ff'))); var_dump(preg_match('/.*/u', hex2bin('ff'))); var_dump(preg_grep('/.*/u', [hex2bin('ff')]));

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.0110.00816.55
8.5.00.0120.00820.26
8.4.150.0020.00014.05
8.4.140.0110.01217.57
8.4.130.0060.00318.78
8.4.120.0090.01124.12
8.4.110.0110.00820.67
8.4.100.0100.00818.67
8.4.90.0060.00420.45
8.4.80.0120.00819.05
8.4.70.0100.00818.27
8.4.60.0110.00818.97
8.4.50.0120.00418.39
8.4.40.0070.01418.59
8.4.30.0110.00820.78
8.4.20.0170.00322.56
8.4.10.0060.00323.85
8.3.280.0120.00818.47
8.3.270.0110.00916.86
8.3.260.0100.01016.66
8.3.250.0110.00718.78
8.3.240.0070.01116.90
8.3.230.0130.00516.61
8.3.220.0110.00818.70
8.3.210.0090.00916.65
8.3.200.0070.00216.84
8.3.190.0110.00717.23
8.3.180.0130.00717.21
8.3.170.0060.01220.82
8.3.160.0130.00616.74
8.3.150.0110.00717.21
8.3.140.0030.00816.66
8.3.130.0080.00818.31
8.3.120.0060.00319.01
8.3.110.0050.00320.94
8.3.100.0040.00424.06
8.3.90.0090.00926.77
8.3.80.0080.00317.97
8.3.70.0190.00416.75
8.3.60.0220.00416.63
8.3.50.0150.00616.86
8.3.40.0140.00021.90
8.3.30.0110.00719.04
8.3.20.0070.00024.18
8.3.10.0090.00024.66
8.3.00.0000.00826.16
8.2.290.0120.00618.82
8.2.280.0140.00418.37
8.2.270.0110.00717.02
8.2.260.0050.00320.59
8.2.250.0080.00018.52
8.2.240.0030.00619.08
8.2.230.0050.00522.58
8.2.220.0030.00537.54
8.2.210.0040.00426.77
8.2.200.0060.00616.50
8.2.190.0000.01518.43
8.2.180.0120.00416.48
8.2.170.0140.00418.91
8.2.160.0070.01022.96
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0090.00026.16
8.2.120.0040.00419.95
8.2.110.0090.00021.06
8.2.100.0030.01017.72
8.2.90.0120.01117.75
8.2.80.0200.00218.44
8.2.70.0160.00518.31
8.2.60.0200.00517.56
8.2.50.0300.00217.37
8.2.40.0240.00717.61
8.2.30.0270.00517.69
8.2.20.0200.00817.61
8.2.10.0210.00917.56
8.2.00.0240.00717.61
8.1.330.0140.00616.16
8.1.320.0120.00716.39
8.1.310.0000.00817.91
8.1.300.0130.00618.33
8.1.290.0030.00630.84
8.1.280.0100.01025.92
8.1.270.0080.00024.66
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00722.42
8.1.230.0060.00622.75
8.1.220.0220.00917.06
8.1.210.0260.00617.13
8.1.200.0220.00717.04
8.1.190.0270.00216.99
8.1.180.0310.00517.11
8.1.170.0280.00617.25
8.1.160.0270.00217.18
8.1.150.0280.00217.13
8.1.140.0270.00217.44
8.1.130.0180.00917.30
8.1.120.0230.00517.42
8.1.110.0260.00417.36
8.1.100.0280.00317.25
8.1.90.0250.00717.25
8.1.80.0190.00817.44
8.1.70.0230.00417.31
8.1.60.0220.00617.44
8.1.50.0200.00617.38
8.1.40.0270.00517.61
8.1.30.0240.00617.48
8.1.20.0220.00617.61
8.1.10.0240.00617.44
8.1.00.0220.00517.38
8.0.300.0230.00716.75
8.0.290.0260.00716.75
8.0.280.0250.00616.75
8.0.270.0210.00716.75
8.0.260.0260.00616.80
8.0.250.0210.01116.62
8.0.240.0280.00216.72
8.0.230.0230.00916.74
8.0.220.0240.00716.66
8.0.210.0260.00716.73
8.0.200.0230.00816.75
8.0.190.0320.00017.55
8.0.180.0220.00716.74
8.0.170.0300.00516.73
8.0.160.0280.00216.88
8.0.150.0260.00616.66
8.0.140.0230.00816.81
8.0.130.0240.00716.87
8.0.120.0210.00916.75
8.0.110.0220.00916.63
8.0.100.0300.00416.66
8.0.90.0240.00616.55
8.0.80.0300.00216.75
8.0.70.0240.00516.63
8.0.60.0220.00816.36
8.0.50.0210.01216.61
8.0.30.0260.00316.74
8.0.20.0250.00516.80
8.0.10.0350.00216.56

preferences:
39.54 ms | 403 KiB | 5 Q