3v4l.org

run code in 300+ PHP versions simultaneously
<?php mb_internal_encoding('UTF-8'); $text = <<<TEXT Павел Дуров fsdf sdf sdf TEXT; $filter = ''; $filter = mb_strtolower($filter); $parts = mb_split('[\x00-\x20]+', $filter); $parts = array_map('trim', $parts); $parts = array_filter($parts); $parts = array_map('preg_quote', $parts); $filter = implode('.*', $parts); echo preg_match("~(?=a)b~", $text);

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.3.60.0140.00716.88
8.3.50.0120.00316.43
8.3.40.0180.00318.95
8.3.30.0120.00319.00
8.3.20.0070.00020.33
8.3.10.0070.00023.70
8.3.00.0040.00422.25
8.2.180.0130.00316.63
8.2.170.0060.00922.96
8.2.160.0100.00319.29
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0070.00021.25
8.2.120.0040.00426.35
8.2.110.0070.00719.26
8.2.100.0120.00018.09
8.2.90.0040.00417.97
8.2.80.0080.00017.97
8.2.70.0030.00617.75
8.2.60.0050.00318.03
8.2.50.0030.00518.07
8.2.40.0050.00320.01
8.2.30.0000.00818.14
8.2.20.0050.00218.04
8.2.10.0050.00218.09
8.2.00.0000.00818.07
8.1.280.0120.00325.92
8.1.270.0000.00722.27
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00820.80
8.1.230.0090.00322.70
8.1.220.0050.00317.78
8.1.210.0040.00418.95
8.1.200.0060.00317.48
8.1.190.0000.00817.63
8.1.180.0080.00018.10
8.1.170.0080.00018.74
8.1.160.0000.00818.90
8.1.150.0050.00219.08
8.1.140.0000.00819.71
8.1.130.0030.00318.96
8.1.120.0000.00817.70
8.1.110.0080.00017.73
8.1.100.0080.00017.74
8.1.90.0000.00817.70
8.1.80.0040.00417.61
8.1.70.0040.00417.72
8.1.60.0030.00517.77
8.1.50.0080.00017.75
8.1.40.0040.00417.72
8.1.30.0060.00317.88
8.1.20.0080.00017.91
8.1.10.0040.00417.87
8.1.00.0050.00317.75
8.0.300.0040.00419.92
8.0.290.0040.00417.00
8.0.280.0030.00318.63
8.0.270.0070.00017.36
8.0.260.0030.00318.47
8.0.250.0000.00817.26
8.0.240.0030.00317.32
8.0.230.0040.00417.23
8.0.220.0000.00717.17
8.0.210.0000.00717.16
8.0.200.0030.00317.20
8.0.190.0030.00617.26
8.0.180.0040.00417.21
8.0.170.0060.00317.20
8.0.160.0000.00717.31
8.0.150.0000.00717.08
8.0.140.0080.00017.14
8.0.130.0030.00313.65
8.0.120.0040.00417.03
8.0.110.0070.00017.04
8.0.100.0040.00417.27
8.0.90.0000.00817.28
8.0.80.0130.00717.19
8.0.70.0050.00217.16
8.0.60.0000.00717.30
8.0.50.0040.00417.23
8.0.30.0080.01117.32
8.0.20.0110.01017.40
8.0.10.0070.00017.23
8.0.00.0180.00316.97
7.4.330.0000.00715.55
7.4.320.0000.00816.79
7.4.300.0000.00616.83
7.4.290.0040.00416.68
7.4.280.0000.00716.95
7.4.270.0050.00216.82
7.4.260.0070.00016.69
7.4.250.0000.00716.60
7.4.240.0040.00416.74
7.4.230.0040.00416.79
7.4.220.0110.00716.86
7.4.210.0100.00516.98
7.4.200.0070.00016.82
7.4.160.0050.01117.02
7.4.150.0090.00917.40
7.4.140.0100.01117.86
7.4.130.0120.00616.72
7.4.120.0080.01416.79
7.3.330.0000.00613.23
7.3.320.0030.00313.22
7.3.310.0030.00316.56
7.3.300.0070.00016.52
7.3.290.0040.00416.47
7.3.280.0070.01016.48
7.3.270.0080.00817.40
7.3.260.0140.00816.54
7.3.250.0110.00916.53
7.3.240.0080.00916.56
7.1.70.0070.00717.41

preferences:
52.1 ms | 400 KiB | 5 Q