3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = <<<HTML <a href="/clothing/jacket/">Jacket</a> <a href="/clothing/Socks/">Socks</a> <a href="/clothing/Shoes/">Shoes</a> <a href="/clothing/Skirt/" class="xxx">test Skirt test</a> HTML; $type = 'skirt'; preg_match('!href="([^"]+)"[^>]*?>[^<]*?'.$type.'[^<]*?<!usi', $data, $out); print_r($out);

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.0040.01818.68
8.3.50.0210.00016.83
8.3.40.0150.00319.03
8.3.30.0070.00718.96
8.3.20.0000.00820.75
8.3.10.0000.00720.15
8.3.00.0040.00420.63
8.2.180.0140.00417.00
8.2.170.0080.00822.96
8.2.160.0080.00622.05
8.2.150.0070.00324.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00319.39
8.2.110.0090.00022.42
8.2.100.0130.00018.16
8.2.90.0040.00418.00
8.2.80.0030.00618.89
8.2.70.0050.00317.61
8.2.60.0040.00417.88
8.2.50.0030.00518.05
8.2.40.0080.00018.34
8.2.30.0040.00419.45
8.2.20.0050.00218.04
8.2.10.0040.00419.35
8.2.00.0040.00419.34
8.1.280.0070.00725.92
8.1.270.0050.00323.70
8.1.260.0000.00826.35
8.1.250.0050.00228.09
8.1.240.0040.00422.02
8.1.230.0120.00017.89
8.1.220.0000.00817.79
8.1.210.0040.00418.77
8.1.200.0030.00617.50
8.1.190.0000.00817.35
8.1.180.0050.00318.10
8.1.170.0080.00017.62
8.1.160.0030.00618.98
8.1.150.0000.00718.94
8.1.140.0080.00018.95
8.1.130.0070.00017.67
8.1.120.0000.00717.64
8.1.110.0000.00917.62
8.1.100.0090.00017.62
8.1.90.0030.00317.60
8.1.80.0000.00817.55
8.1.70.0070.00017.57
8.1.60.0050.00317.70
8.1.50.0050.00317.57
8.1.40.0030.00517.57
8.1.30.0040.00417.84
8.1.20.0060.00317.88
8.1.10.0040.00417.72
8.1.00.0060.00317.62
8.0.300.0000.00718.93
8.0.290.0080.00017.00
8.0.280.0030.00318.39
8.0.270.0000.00718.20
8.0.260.0000.00717.02
8.0.250.0020.00517.25
8.0.240.0030.00617.21
8.0.230.0000.00817.24
8.0.220.0040.00417.24
8.0.210.0000.00717.25
8.0.200.0030.00317.28
8.0.190.0040.00417.27
8.0.180.0030.00517.21
8.0.170.0030.00717.19
8.0.160.0040.00417.19
8.0.150.0030.00817.04
8.0.140.0050.00517.15
8.0.130.0000.00513.60
8.0.120.0030.00517.17
8.0.110.0040.00417.24
8.0.100.0040.00417.33
8.0.90.0000.00917.09
8.0.80.0030.01317.25
8.0.70.0070.00017.36
8.0.60.0000.00817.13
8.0.50.0000.00817.13
8.0.30.0130.00317.36
8.0.20.0140.01117.28
8.0.10.0070.00017.06
8.0.00.0160.00616.95
7.4.330.0050.00015.55
7.4.320.0000.00716.87
7.4.300.0030.00316.82
7.4.290.0080.00016.71
7.4.280.0030.00716.86
7.4.270.0000.00716.64
7.4.260.0030.00613.48
7.4.250.0070.00016.75
7.4.240.0030.00416.78
7.4.230.0070.00016.85
7.4.220.0020.00516.68
7.4.210.0090.00716.85
7.4.200.0040.00416.78
7.4.130.0110.01116.73
7.4.120.0100.01016.61
7.4.110.0180.00016.70
7.4.100.0100.00716.87
7.4.90.0120.00916.75
7.4.80.0100.01219.39
7.4.70.0100.00716.62
7.4.60.0150.00616.80
7.4.50.0080.00416.72
7.4.40.0130.01016.74
7.4.30.0090.00716.67
7.4.20.0090.00816.67
7.4.10.0110.00816.65
7.4.00.0070.01316.67
7.3.330.0030.00316.55
7.3.320.0030.00313.27
7.3.310.0080.00016.68
7.3.300.0030.00316.29
7.3.290.0060.01316.54
7.3.260.0090.01016.62
7.3.240.0110.00616.58
7.3.230.0030.01516.55
7.3.210.0100.00716.76
7.3.200.0130.00316.54
7.3.190.0060.00916.64
7.3.180.0070.01016.66
7.3.170.0120.00916.52
7.3.160.0000.01516.77
7.3.150.0070.01316.51
7.3.140.0080.00816.50
7.3.130.0080.01316.53
7.3.120.0080.01016.55
7.3.110.0090.00916.68
7.3.100.0060.01116.61
7.3.90.0070.01016.54
7.3.80.0060.01216.56
7.3.70.0110.01116.49
7.3.60.0090.01116.51
7.3.50.0080.01016.55
7.3.40.0090.01216.52
7.3.30.0140.00616.63
7.3.20.0070.01316.73
7.3.10.0100.00916.50
7.3.00.0120.00916.42
7.2.330.0080.00816.64
7.2.320.0100.01216.79
7.2.310.0030.01316.86
7.2.300.0120.00916.68
7.2.290.0030.01216.39
7.2.280.0090.01216.63
7.2.270.0030.01416.72
7.2.260.0090.01316.49
7.2.250.0140.00616.64
7.2.240.0090.00916.63
7.2.230.0080.01216.57
7.2.220.0060.01216.64
7.2.210.0090.01016.62
7.2.200.0100.01116.61
7.2.190.0120.00916.62
7.2.180.0150.00816.64
7.2.170.0120.01016.63
7.2.160.0090.01316.66
7.2.150.0080.01516.63
7.2.140.0130.00616.77
7.2.130.0170.00916.68
7.2.120.0110.01216.65
7.2.110.0030.02016.71
7.2.100.0080.01016.68
7.2.90.0100.01216.76
7.2.80.0130.00816.64
7.2.70.0110.00916.72
7.2.60.0110.00616.63
7.2.50.0110.00716.60
7.2.40.0090.00916.80
7.2.30.0100.01016.82
7.2.20.0100.01216.63
7.2.10.0090.01116.66
7.2.00.0070.01216.59

preferences:
58.83 ms | 401 KiB | 5 Q