3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Aydin; class Directory { public $dir = ''; public $parts = []; } class Vhost { public $directories = []; } $vhost =' <Directory "/srv/httpd/htdocs/mydomain.com"> Options Indexes FollowSymLinks AllowOverride All Order deny,allow Allow from 127.0.0.1 Allow from xxx.xxx.xxx.xxx Allow from xxx.xxx.xxx.xxx Deny from all </Directory> <Directory "/srv/httpd/htdocs/myseconddomain"> Options Indexes FollowSymLinks AllowOverride All Order deny,allow Allow from 127.0.0.1 Allow from xxx.xxx.xxx.xxx Allow from xxx.xxx.xxx.xxx Deny from all </Directory> '; $matches = []; $directory = preg_match_all('/<Directory "(.*")>([\s\S]*?)<\/Directory>/', $vhost, $matches, PREG_SET_ORDER); $vhost = new Vhost; foreach ($matches as $match) { $dir = new Directory; $dir->dir = $match[1]; //echo "Directory: " . $match[1] . "\n"; $lines = explode("\n", trim($match[2])); foreach ($lines as $line) { $parts = preg_split('/\s+/', trim($line)); $dir->parts[] = $parts; } $vhost->directories[] = $dir; } var_dump($vhost);

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.0080.01118.43
8.3.50.0120.00822.13
8.3.40.0110.01118.82
8.3.30.0040.01119.27
8.3.20.0000.00920.34
8.3.10.0060.00320.64
8.3.00.0060.00319.51
8.2.180.0070.01018.54
8.2.170.0030.01222.96
8.2.160.0070.00720.35
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0070.00326.16
8.2.120.0040.00422.30
8.2.110.0120.00321.16
8.2.100.0060.00618.03
8.2.90.0030.00619.05
8.2.80.0000.00817.97
8.2.70.0040.00417.88
8.2.60.0000.00818.05
8.2.50.0000.00818.10
8.2.40.0050.00318.41
8.2.30.0000.00719.32
8.2.20.0030.00517.93
8.2.10.0050.00318.16
8.2.00.0050.00317.96
8.1.280.0100.01025.92
8.1.270.0040.00423.96
8.1.260.0060.00326.35
8.1.250.0060.00328.09
8.1.240.0060.00323.82
8.1.230.0060.00617.83
8.1.220.0030.00517.80
8.1.210.0060.00318.77
8.1.200.0040.00417.48
8.1.190.0030.00517.35
8.1.180.0040.00418.10
8.1.170.0030.00618.59
8.1.160.0040.00422.09
8.1.150.0000.00818.93
8.1.140.0000.00817.62
8.1.130.0040.00417.73
8.1.120.0040.00417.55
8.1.110.0040.00417.65
8.1.100.0000.00717.59
8.1.90.0030.00617.60
8.1.80.0050.00217.59
8.1.70.0030.00317.46
8.1.60.0000.00917.61
8.1.50.0000.00817.71
8.1.40.0050.00317.68
8.1.30.0080.00017.68
8.1.20.0000.00817.83
8.1.10.0080.00017.61
8.1.00.0000.00817.65
8.0.300.0050.00518.77
8.0.290.0050.00316.75
8.0.280.0040.00418.48
8.0.270.0080.00017.24
8.0.260.0030.00317.28
8.0.250.0000.00717.09
8.0.240.0000.00717.10
8.0.230.0000.00717.01
8.0.220.0000.00717.04
8.0.210.0030.00317.08
8.0.200.0040.00417.00
8.0.190.0060.00317.15
8.0.180.0050.00217.04
8.0.170.0030.00617.05
8.0.160.0000.00717.05
8.0.150.0040.00416.99
8.0.140.0030.00517.09
8.0.130.0030.00313.50
8.0.120.0000.00817.00
8.0.110.0040.00417.02
8.0.100.0040.00417.00
8.0.90.0000.00817.05
8.0.80.0060.01217.07
8.0.70.0040.00416.90
8.0.60.0040.00416.95
8.0.50.0040.00417.05
8.0.30.0160.00517.31
8.0.20.0150.00917.40
8.0.10.0060.00317.07
8.0.00.0100.00816.82
7.4.330.0000.00515.10
7.4.320.0060.00016.63
7.4.300.0030.00316.86
7.4.290.0070.00016.82
7.4.280.0060.00316.71
7.4.270.0070.00016.86
7.4.260.0000.00816.67
7.4.250.0040.00416.61
7.4.240.0020.00516.80
7.4.230.0040.00316.68
7.4.220.0030.02316.73
7.4.210.0110.00316.74
7.4.200.0060.00316.93
7.4.160.0090.00916.75
7.4.150.0060.01417.40
7.4.140.0130.01017.86
7.4.130.0110.01316.79
7.4.120.0170.00316.74
7.4.110.0120.00616.84
7.4.100.0100.01016.80
7.4.90.0130.00516.76
7.4.80.0030.01719.04
7.4.70.0040.02316.63
7.4.60.0060.01216.83
7.4.50.0050.00316.37
7.4.40.0040.01516.63
7.4.30.0100.00616.76
7.4.00.0110.00715.07
7.3.330.0050.00013.48
7.3.320.0060.00013.39
7.3.310.0000.00716.63
7.3.300.0000.00716.39
7.3.290.0100.00616.65
7.3.280.0070.00816.52
7.3.270.0160.01017.40
7.3.260.0180.00916.81
7.3.250.0140.00516.73
7.3.240.0080.01216.89
7.3.230.0120.01216.68
7.3.210.0110.00716.52
7.3.200.0120.00919.39
7.3.190.0130.00616.61
7.3.180.0060.01116.55
7.3.170.0000.01916.66
7.3.160.0130.00316.61
7.2.330.0120.00816.90
7.2.320.0090.00916.84
7.2.310.0120.00916.76
7.2.300.0090.01316.92
7.2.290.0040.02016.80
7.2.60.0060.00917.10
7.2.00.0060.00619.59
7.1.200.0030.01215.73
7.1.100.0030.01018.26
7.1.70.0000.00817.28
7.1.60.0090.01519.32
7.1.50.0140.00717.18
7.1.00.0070.07022.29
7.0.200.0000.00816.99
7.0.140.0100.07022.18
7.0.60.0070.07721.84
7.0.50.0100.08317.96
7.0.40.0130.04720.26
7.0.30.0130.05320.19
7.0.20.0200.08720.14
7.0.10.0000.05320.10
7.0.00.0130.06320.07
5.6.280.0070.07321.11
5.6.210.0070.04020.55
5.6.200.0070.08018.19
5.6.190.0030.04320.33
5.6.180.0170.04020.48
5.6.170.0430.05720.50
5.6.160.0030.04320.50
5.6.150.0070.08018.20
5.6.140.0070.08318.27
5.6.130.0070.05718.15
5.6.120.0000.05321.02
5.6.110.0000.04321.03
5.6.100.0130.06321.00
5.6.90.0070.06721.11
5.6.80.0070.03720.35
5.5.350.2930.03320.41
5.5.340.0130.03018.02
5.5.330.0070.05720.42
5.5.320.0070.08020.27
5.5.310.0200.03720.36
5.5.300.0070.06717.98
5.5.290.0000.08717.98
5.5.280.0100.06720.88
5.5.270.0030.04020.73
5.5.260.0030.04320.68
5.5.250.0130.08020.47
5.5.240.0100.07320.27
5.4.450.0070.04319.39
5.4.440.0270.04719.38
5.4.430.0200.05319.54
5.4.420.0730.00019.63
5.4.410.0770.00019.31
5.4.400.0670.00019.25
5.4.390.0630.00019.02
5.4.380.0370.06318.63
5.4.370.0270.05318.46
5.4.360.0370.04718.63
5.4.350.0300.06318.48
5.4.340.0230.06018.80
5.4.320.0050.03812.52
5.4.310.0050.03912.52
5.4.300.0040.03912.52
5.4.290.0080.03712.52
5.4.280.0090.04212.41
5.4.270.0080.03412.41
5.4.260.0050.03812.41
5.4.250.0040.03912.41
5.4.240.0030.04112.41
5.4.230.0030.04112.41
5.4.220.0070.03612.41
5.4.210.0050.03812.41
5.4.200.0090.03612.40
5.4.190.0100.03912.41
5.4.180.0090.03312.40
5.4.170.0080.03312.41
5.4.160.0070.03512.40
5.4.150.0050.03712.40
5.4.140.0050.03912.09
5.4.130.0050.03712.08
5.4.120.0030.03812.03
5.4.110.0040.04012.03
5.4.100.0090.04312.03
5.4.90.0080.03712.02
5.4.80.0080.03612.03
5.4.70.0080.03312.03
5.4.60.0070.03412.02
5.4.50.0090.03212.02
5.4.40.0060.03512.01
5.4.30.0060.03612.01
5.4.20.0060.03512.01
5.4.10.0050.03612.01
5.4.00.0070.03511.50
5.3.290.0120.03312.80
5.3.280.0030.04012.71
5.3.270.0100.03612.72
5.3.260.0040.04212.72
5.3.250.0070.03612.72
5.3.240.0070.03612.72
5.3.230.0060.03812.71
5.3.220.0080.03512.68
5.3.210.0060.03912.68
5.3.200.0060.03612.68
5.3.190.0060.03712.68
5.3.180.0050.03612.67
5.3.170.0080.04212.67
5.3.160.0110.03812.67
5.3.150.0090.04312.67
5.3.140.0060.04112.66
5.3.130.0060.03812.66
5.3.120.0030.04212.66
5.3.110.0060.03812.66
5.3.100.0060.03612.12
5.3.90.0050.03712.10
5.3.80.0060.03512.09
5.3.70.0080.04012.09
5.3.60.0060.04012.07
5.3.50.0070.04612.02
5.3.40.0040.03812.02
5.3.30.0100.03911.98
5.3.20.0090.03611.76
5.3.10.0050.03511.73
5.3.00.0050.03611.71
5.2.170.0020.0329.18
5.2.160.0030.0369.18
5.2.150.0040.0319.18
5.2.140.0080.0289.18
5.2.130.0050.0299.14
5.2.120.0040.0289.14
5.2.110.0050.0289.14
5.2.100.0030.0299.14
5.2.90.0090.0329.14
5.2.80.0070.0279.14
5.2.70.0050.0299.14
5.2.60.0080.0279.10
5.2.50.0070.0329.07
5.2.40.0010.0349.04
5.2.30.0060.0309.01
5.2.20.0100.0349.00
5.2.10.0070.0288.93
5.2.00.0050.0298.78
5.1.60.0040.0238.07
5.1.50.0030.0268.07
5.1.40.0050.0238.04
5.1.30.0030.0268.39
5.1.20.0050.0258.42
5.1.10.0040.0278.15
5.1.00.0060.0238.14
5.0.50.0050.0196.63
5.0.40.0000.0226.48
5.0.30.0040.0306.29
5.0.20.0050.0176.27
5.0.10.0040.0196.24
5.0.00.0040.0306.24
4.4.90.0020.0164.78
4.4.80.0020.0154.76
4.4.70.0040.0144.75
4.4.60.0020.0164.75
4.4.50.0030.0144.77
4.4.40.0010.0264.70
4.4.30.0030.0154.76
4.4.20.0020.0164.85
4.4.10.0020.0154.85
4.4.00.0030.0244.76
4.3.110.0010.0174.67
4.3.100.0020.0154.66
4.3.90.0020.0154.64
4.3.80.0030.0244.58
4.3.70.0010.0164.63
4.3.60.0030.0144.63
4.3.50.0050.0134.63
4.3.40.0020.0244.54
4.3.30.0030.0143.29
4.3.20.0020.0153.26
4.3.10.0000.0173.22
4.3.00.0000.01715.60

preferences:
46.98 ms | 401 KiB | 5 Q