3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regex = '/^<\S+\s*\S*>[\s\S]*?(?:<\/\S+>)|^([\s\S]+\n*)/m'; $vhost = ' DocumentRoot /www/example2 ServerName www.example.org ErrorLog /var/log/log.txt <Directory> ErrorLog /var/log/log.txt </Directory> <Directory /> ErrorLog /var/log/log.txt </Directory>'; preg_match_all($regex, $vhost, $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.3.60.0120.00318.31
8.3.50.0110.00621.15
8.3.40.0140.00318.93
8.3.30.0040.01119.09
8.3.20.0050.00220.34
8.3.10.0000.00821.78
8.3.00.0080.00019.38
8.2.180.0120.00316.63
8.2.170.0100.00722.96
8.2.160.0070.00720.36
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0080.00022.23
8.2.110.0060.00320.46
8.2.100.0060.00617.84
8.2.90.0080.00019.09
8.2.80.0080.00017.97
8.2.70.0050.00317.63
8.2.60.0080.00017.93
8.2.50.0040.00418.07
8.2.40.0000.00919.71
8.2.30.0000.00717.98
8.2.20.0080.00017.76
8.2.10.0050.00218.09
8.2.00.0000.00817.76
8.1.280.0130.01025.92
8.1.270.0080.00023.98
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0030.00623.86
8.1.230.0090.00320.95
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0040.00417.22
8.1.190.0030.00517.35
8.1.180.0030.00618.10
8.1.170.0050.00318.64
8.1.160.0040.00421.98
8.1.150.0000.00718.86
8.1.140.0020.00517.46
8.1.130.0000.00717.84
8.1.120.0040.00417.63
8.1.110.0000.00817.55
8.1.100.0030.00517.46
8.1.90.0040.00417.61
8.1.80.0080.00017.55
8.1.70.0060.00317.48
8.1.60.0000.00817.58
8.1.50.0000.00917.53
8.1.40.0000.00717.64
8.1.30.0060.00317.66
8.1.20.0000.00817.68
8.1.10.0070.00017.64
8.1.00.0050.00217.60
8.0.300.0070.00018.77
8.0.290.0030.00616.88
8.0.280.0040.00418.37
8.0.270.0000.00817.14
8.0.260.0050.00217.15
8.0.250.0070.00017.02
8.0.240.0000.00717.02
8.0.230.0100.00016.91
8.0.220.0000.00716.94
8.0.210.0030.00316.98
8.0.200.0050.00217.06
8.0.190.0050.00516.96
8.0.180.0000.00716.89
8.0.170.0030.00516.95
8.0.160.0000.00716.98
8.0.150.0070.00016.89
8.0.140.0070.00016.96
8.0.130.0000.00513.40
8.0.120.0000.00817.06
8.0.110.0040.00416.91
8.0.100.0040.00417.05
8.0.90.0040.00316.94
8.0.80.0120.00617.04
8.0.70.0030.00516.87
8.0.60.0050.00216.95
8.0.50.0000.00816.98
8.0.30.0110.00817.15
8.0.20.0120.00717.40
8.0.10.0040.00417.14
8.0.00.0080.01116.69
7.4.330.0000.00515.02
7.4.320.0000.00716.75
7.4.300.0030.00316.65
7.4.290.0030.00316.76
7.4.280.0040.00816.64
7.4.270.0040.00416.55
7.4.260.0060.00316.54
7.4.250.0040.00416.71
7.4.240.0030.00616.78
7.4.230.0030.00316.55
7.4.220.0100.00716.75
7.4.210.0070.01016.65
7.4.200.0000.00716.87
7.4.160.0030.01416.69
7.4.150.0120.00617.40
7.4.140.0080.01117.86
7.4.130.0080.00816.59
7.4.120.0190.00016.66
7.4.110.0170.00016.78
7.4.100.0130.00916.79
7.4.90.0030.01416.57
7.4.80.0100.01319.39
7.4.70.0140.00416.52
7.4.60.0130.00616.64
7.4.50.0050.00016.45
7.4.40.0070.01016.58
7.4.30.0140.00716.70
7.4.00.0130.00314.93
7.3.330.0050.00013.18
7.3.320.0050.00013.12
7.3.310.0050.00216.13
7.3.300.0000.00716.13
7.3.290.0100.00516.29
7.3.280.0090.00716.28
7.3.270.0100.00717.40
7.3.260.0120.00616.39
7.3.250.0090.00916.37
7.3.240.0150.00916.32
7.3.230.0150.00316.62
7.3.210.0040.01216.23
7.3.200.0050.01119.39
7.3.190.0130.00316.57
7.3.180.0060.01016.36
7.3.170.0090.00916.27
7.3.160.0130.00316.59
7.2.330.0090.00916.53
7.2.320.0150.00916.50
7.2.310.0160.00316.60
7.2.300.0110.00716.64
7.2.290.0090.00916.80
7.2.80.0110.00516.23
7.2.60.0100.00716.51
7.2.50.0000.01216.86
7.1.200.0070.00715.72
7.1.70.0000.00717.07
7.1.60.0080.01519.11
7.1.50.0200.02034.94
7.1.00.0000.07322.30
7.0.200.0070.00416.71
7.0.140.0070.06722.10
7.0.60.0100.08019.83
7.0.50.0030.04317.88
7.0.40.0230.08020.23
7.0.30.0300.07320.19
7.0.20.0270.07320.18
7.0.10.0070.04720.11
7.0.00.0070.07020.18
5.6.280.0070.06720.85
5.6.210.0030.04020.61
5.6.200.0100.03318.19
5.6.190.0000.08020.27
5.6.180.0270.06320.61
5.6.170.0270.07720.50
5.6.160.0030.04020.52
5.6.150.0070.06718.21
5.6.140.0000.04018.20
5.6.130.0030.05018.07
5.6.120.0170.05320.97
5.6.110.0100.07720.98
5.6.100.0100.07021.00
5.6.90.0100.04720.93
5.6.80.0000.09020.37
5.6.70.4430.03720.35
5.5.350.0130.04720.40
5.5.340.0100.05017.98
5.5.330.0070.07020.55
5.5.320.0230.04720.17
5.5.310.0270.05020.27
5.5.300.0070.05018.00
5.5.290.0070.06017.93
5.5.280.0030.08320.79
5.5.270.0130.08020.75
5.5.260.0070.04320.86
5.5.250.0130.07320.67
5.5.240.0230.07020.34
5.4.450.0700.05719.57
5.4.440.0700.06019.12
5.4.430.0470.06319.32
5.4.420.0630.00019.33
5.4.410.0630.00019.57
5.4.400.0630.00019.17
5.4.390.0700.00018.94
5.4.380.0630.00019.07
5.4.370.0600.00018.91
5.4.360.0600.00018.95
5.4.350.0670.00019.08
5.4.340.0060.03411.96
5.4.320.0070.03412.45
5.4.310.0070.03712.45
5.4.300.0070.03812.45
5.4.290.0060.03712.45
5.4.280.0070.03312.34
5.4.270.0060.03512.34
5.4.260.0060.03712.35
5.4.250.0050.03812.34
5.4.240.0020.04012.35
5.4.230.0090.03412.34
5.4.220.0070.03412.34
5.4.210.0040.03612.34
5.4.200.0080.03512.34
5.4.190.0050.03612.34
5.4.180.0060.03512.34
5.4.170.0050.03912.34
5.4.160.0070.03312.34
5.4.150.0050.03712.34
5.4.140.0070.03512.02
5.4.130.0070.03312.01
5.4.120.0040.03611.96
5.4.110.0060.03411.96
5.4.100.0030.03711.96
5.4.90.0070.03511.96
5.4.80.0090.03311.96
5.4.70.0040.03611.96
5.4.60.0060.03311.96
5.4.50.0060.03411.96
5.4.40.0040.03511.95
5.4.30.0050.03611.95
5.4.20.0060.03511.95
5.4.10.0070.03211.95
5.4.00.0100.03111.44
5.3.290.0070.03812.80
5.3.280.0050.03812.71
5.3.270.0040.04012.72
5.3.260.0080.03612.72
5.3.250.0060.03712.72
5.3.240.0070.03612.72
5.3.230.0060.03712.71
5.3.220.0070.03912.68
5.3.210.0080.04212.68
5.3.200.0030.03812.68
5.3.190.0060.03512.68
5.3.180.0050.03612.68
5.3.170.0060.03512.66
5.3.160.0040.03812.67
5.3.150.0070.03612.67
5.3.140.0060.03612.66
5.3.130.0040.04112.66
5.3.120.0030.04012.66
5.3.110.0080.03612.66
5.3.100.0060.03612.12
5.3.90.0030.03912.08
5.3.80.0080.03312.08
5.3.70.0090.03312.08
5.3.60.0070.03512.06
5.3.50.0050.03612.00
5.3.40.0080.03512.00
5.3.30.0060.03411.96
5.3.20.0040.03711.74
5.3.10.0080.03211.70
5.3.00.0070.03511.69
5.2.170.0040.0319.19
5.2.160.0060.0399.19
5.2.150.0070.0369.19
5.2.140.0080.0269.19
5.2.130.0030.0299.15
5.2.120.0070.0269.14
5.2.110.0060.0269.15
5.2.100.0030.0309.15
5.2.90.0030.0309.15
5.2.80.0050.0309.15
5.2.70.0050.0309.14
5.2.60.0050.0309.10
5.2.50.0030.0319.07
5.2.40.0030.0309.05
5.2.30.0060.0289.02
5.2.20.0020.0349.02
5.2.10.0040.0298.92
5.2.00.0060.0288.78
5.1.60.0060.0258.06
5.1.50.0000.0328.06
5.1.40.0050.0238.04
5.1.30.0050.0268.39
5.1.20.0050.0268.41
5.1.10.0040.0268.13
5.1.00.0070.0238.13
5.0.50.0040.0206.61
5.0.40.0020.0216.48
5.0.30.0020.0336.29
5.0.20.0020.0216.26
5.0.10.0030.0206.23
5.0.00.0010.0336.23
4.4.90.0010.0184.78
4.4.80.0030.0154.76
4.4.70.0020.0164.76
4.4.60.0010.0164.75
4.4.50.0050.0224.77
4.4.40.0030.0254.71
4.4.30.0020.0164.76
4.4.20.0030.0154.84
4.4.10.0020.0164.85
4.4.00.0020.0264.76
4.3.110.0050.0134.67
4.3.100.0040.0144.66
4.3.90.0050.0134.64
4.3.80.0070.0204.59
4.3.70.0050.0204.63
4.3.60.0030.0154.63
4.3.50.0010.0174.63
4.3.40.0020.0244.54
4.3.30.0000.0173.28
4.3.20.0020.0153.26
4.3.10.0070.0163.22
4.3.00.0100.0206.75

preferences:
60.91 ms | 401 KiB | 5 Q