3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'class=&quot;s--e'; preg_match('~(class=&quot;(?:[^&]*\s)?)--e~sU', $text, $match); var_dump($match);

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.0040.00420.64
8.4.110.0090.00922.59
8.4.100.0120.00817.85
8.4.90.0140.00620.53
8.4.80.0060.00318.12
8.4.70.0120.00918.06
8.4.60.0110.00518.82
8.4.50.0110.00917.97
8.4.40.0110.00017.90
8.4.30.0120.00620.83
8.4.20.0000.00918.20
8.4.10.0100.01021.91
8.3.250.0110.00819.02
8.3.240.0060.00416.69
8.3.230.0100.00716.68
8.3.220.0110.00617.08
8.3.210.0130.00718.42
8.3.200.0030.00516.73
8.3.190.0040.00416.93
8.3.180.0110.00818.63
8.3.170.0110.01117.12
8.3.160.0090.00916.71
8.3.150.0070.00020.75
8.3.140.0110.00718.86
8.3.130.0030.00618.27
8.3.120.0130.00320.49
8.3.110.0050.00320.94
8.3.100.0030.00616.64
8.3.90.0060.01226.77
8.3.80.0060.00616.75
8.3.70.0140.00016.58
8.3.60.0070.01418.56
8.3.50.0130.00318.54
8.3.40.0170.00320.34
8.3.30.0110.00418.84
8.3.20.0040.00424.18
8.3.10.0000.00824.66
8.3.00.0040.00426.16
8.2.290.0120.00720.57
8.2.280.0120.00518.81
8.2.270.0120.00617.17
8.2.260.0000.00818.39
8.2.250.0110.00716.69
8.2.240.0000.01017.47
8.2.230.0100.00022.58
8.2.220.0080.00037.54
8.2.210.0120.00626.77
8.2.200.0040.00416.63
8.2.190.0110.00416.75
8.2.180.0100.01025.92
8.2.170.0110.00719.09
8.2.160.0110.00722.96
8.2.150.0080.00025.66
8.2.140.0050.00324.66
8.2.130.0000.01126.16
8.2.120.0060.00326.16
8.2.110.0070.01019.27
8.2.100.0060.00617.91
8.2.90.0050.00317.75
8.2.80.0040.00418.86
8.2.70.0090.00019.52
8.2.60.0050.00317.63
8.2.50.0080.00017.75
8.2.40.0080.00017.63
8.2.30.0030.00517.65
8.2.20.0030.00519.20
8.2.10.0020.00517.89
8.2.00.0000.00719.18
8.1.330.0080.01122.18
8.1.320.0090.01016.17
8.1.310.0040.00418.61
8.1.300.0060.00320.25
8.1.290.0090.00030.84
8.1.280.0100.01025.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00923.86
8.1.230.0070.00420.88
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0090.00017.12
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0000.00817.62
8.1.160.0000.00818.92
8.1.150.0040.00418.71
8.1.140.0070.00017.55
8.1.130.0030.00319.07
8.1.120.0000.00717.55
8.1.110.0000.00917.46
8.1.100.0050.00717.40
8.1.90.0140.00217.43
8.1.80.0160.00017.32
8.1.70.0150.00017.43
8.1.60.0140.00317.50
8.1.50.0150.00217.50
8.1.40.0060.01017.45
8.1.30.0070.01117.72
8.1.20.0170.00017.62
8.1.10.0040.01317.55
8.1.00.0120.00617.51
8.0.300.0040.00419.98
8.0.290.0080.00016.75
8.0.280.0000.00818.09
8.0.270.0050.00218.14
8.0.260.0000.00618.27
8.0.250.0000.00716.93
8.0.240.0000.00817.04
8.0.230.0100.00616.91
8.0.220.0090.00716.82
8.0.210.0140.00016.89
8.0.200.0080.00816.96
8.0.190.0090.00616.89
8.0.180.0150.00016.79
8.0.170.0140.00016.80
8.0.160.0090.00616.78
8.0.150.0160.00016.95
8.0.140.0150.00016.88
8.0.130.0120.00316.85
8.0.120.0160.00016.89
8.0.110.0100.00516.94
8.0.100.0120.00316.95
8.0.90.0170.00016.93
8.0.80.0130.00316.90
8.0.70.0110.00316.86
8.0.60.0100.00516.85
8.0.50.0050.01016.84
8.0.30.0110.00416.93
8.0.20.0100.00616.84
8.0.10.0100.00617.02
7.4.330.0000.00615.55
7.4.320.0040.00416.69
7.4.300.0050.00516.54
7.4.290.0110.00416.67
7.4.280.0000.01016.49
7.4.270.0110.00016.43
7.4.260.0060.00616.42
7.4.250.0090.00016.63
7.4.240.0060.00316.59
7.4.230.0080.00416.65
7.4.220.0040.00616.61
7.4.210.0090.00316.42
7.4.200.0000.00916.43
7.4.190.0060.00616.68
7.4.180.0160.00016.75
7.4.160.0090.00516.68
7.4.150.0150.00016.70
7.4.140.0050.01016.55
7.4.130.0090.00616.70
7.4.120.0090.00616.61
7.4.110.0110.00316.45
7.4.100.0070.00716.58
7.4.90.0110.00016.44
7.4.80.0060.00616.41
7.4.70.0070.00416.46
7.4.60.0100.00316.26
7.4.50.0110.00016.09
7.4.40.0080.00416.09
7.4.30.0080.00416.27
7.4.20.0110.00016.27
7.4.10.0100.00216.06
7.4.00.0050.00516.31

preferences:
30.81 ms | 403 KiB | 5 Q