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", $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.0130.00618.68
8.3.50.0060.01622.07
8.3.40.0130.00618.92
8.3.30.0110.00419.00
8.3.20.0030.00520.29
8.3.10.0060.00320.66
8.3.00.0000.00819.63
8.2.180.0100.00718.54
8.2.170.0170.00722.96
8.2.160.0060.00920.43
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00726.16
8.2.120.0050.00322.23
8.2.110.0030.00620.52
8.2.100.0110.00017.84
8.2.90.0030.00619.17
8.2.80.0040.00418.00
8.2.70.0000.00817.75
8.2.60.0030.00617.93
8.2.50.0030.00618.10
8.2.40.0080.00018.07
8.2.30.0080.00019.27
8.2.20.0060.00318.01
8.2.10.0040.00418.11
8.2.00.0040.00417.90
8.1.280.0130.00725.92
8.1.270.0030.00623.96
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0030.00723.61
8.1.230.0070.00720.84
8.1.220.0040.00417.76
8.1.210.0080.00018.77
8.1.200.0100.00017.50
8.1.190.0040.00417.47
8.1.180.0060.00318.10
8.1.170.0040.00418.71
8.1.160.0050.00322.05
8.1.150.0000.00818.98
8.1.140.0040.00417.58
8.1.130.0020.00517.86
8.1.120.0080.00017.63
8.1.110.0050.00217.61
8.1.100.0000.00717.60
8.1.90.0030.00617.68
8.1.80.0040.00417.51
8.1.70.0040.00417.49
8.1.60.0000.00917.78
8.1.50.0060.00317.70
8.1.40.0050.00317.55
8.1.30.0040.00417.62
8.1.20.0050.00317.79
8.1.10.0000.01017.57
8.1.00.0050.00317.65
8.0.300.0000.00819.96
8.0.290.0040.00416.75
8.0.280.0000.00818.47
8.0.270.0100.00017.20
8.0.260.0030.00317.22
8.0.250.0030.00317.15
8.0.240.0070.00016.98
8.0.230.0030.00317.08
8.0.220.0070.00017.07
8.0.210.0000.00717.08
8.0.200.0000.00816.99
8.0.190.0000.00917.09
8.0.180.0050.00317.13
8.0.170.0040.00416.96
8.0.160.0030.00516.90
8.0.150.0040.00416.94
8.0.140.0000.00716.85
8.0.130.0000.00713.47
8.0.120.0030.00616.94
8.0.110.0060.00317.12
8.0.100.0040.00416.99
8.0.90.0040.00416.93
8.0.80.0060.00917.04
8.0.70.0000.00717.03
8.0.60.0040.00417.05
8.0.50.0020.00516.92
8.0.30.0050.01517.22
8.0.20.0110.01017.40
8.0.10.0000.00817.11
8.0.00.0130.00816.89
7.4.330.0030.00315.16
7.4.320.0030.00316.73
7.4.300.0030.00316.84
7.4.290.0070.00016.71
7.4.280.0060.00316.82
7.4.270.0040.00416.77
7.4.260.0040.00416.68
7.4.250.0040.00416.62
7.4.240.0020.00516.77
7.4.230.0050.00216.71
7.4.220.0110.01516.93
7.4.210.0070.00716.80
7.4.200.0040.00416.86
7.4.160.0070.01116.64
7.4.150.0040.02017.40
7.4.140.0110.01117.86
7.4.130.0090.01016.70
7.4.120.0150.00316.84
7.4.110.0120.00616.81
7.4.100.0160.00616.86
7.4.90.0110.00916.66
7.4.80.0060.01219.04
7.4.70.0140.00716.73
7.4.60.0120.00916.64
7.4.50.0000.00816.90
7.4.40.0130.00616.54
7.4.30.0120.00616.69
7.4.00.0050.01315.19
7.3.330.0030.00313.48
7.3.320.0000.00513.52
7.3.310.0000.00816.40
7.3.300.0070.00016.47
7.3.290.0090.00616.40
7.3.280.0110.00516.52
7.3.270.0030.01717.40
7.3.260.0170.00416.79
7.3.250.0180.00716.60
7.3.240.0130.00616.88
7.3.230.0090.00916.49
7.3.210.0120.00816.54
7.3.200.0100.01319.39
7.3.190.0030.01516.78
7.3.180.0100.00716.51
7.3.170.0110.00616.47
7.3.160.0110.00716.64
7.3.120.0090.00714.95
7.3.110.0080.00715.02
7.3.100.0070.00915.14
7.3.90.0050.01014.74
7.3.80.0070.00915.06
7.3.70.0070.00614.97
7.3.60.0040.01115.00
7.3.50.0050.00915.11
7.3.40.0080.00815.05
7.3.30.0050.00614.97
7.3.20.0050.01016.94
7.3.10.0060.01016.96
7.3.00.0060.00816.62
7.2.330.0130.00716.88
7.2.320.0030.01516.79
7.2.310.0120.01216.77
7.2.300.0120.01216.88
7.2.290.0030.01616.96
7.2.250.0050.01215.34
7.2.240.0100.00815.28
7.2.230.0090.01015.27
7.2.220.0050.00915.30
7.2.210.0110.00615.41
7.2.200.0080.00515.19
7.2.190.0050.01215.35
7.2.180.0050.00815.23
7.2.170.0090.00714.98
7.2.60.0060.00917.14
7.2.00.0030.01219.87
7.1.330.0060.01116.12
7.1.320.0030.00915.92
7.1.310.0070.00915.98
7.1.300.0070.00815.91
7.1.290.0050.00715.87
7.1.280.0050.00715.92
7.1.270.0060.00915.81
7.1.260.0090.00815.97
7.1.200.0100.00315.78
7.1.100.0100.00318.52
7.1.70.0000.00817.13
7.1.60.0030.02319.32
7.1.50.0070.01517.23
7.1.00.0000.08022.47
7.0.200.0030.00616.96
7.0.140.0030.07322.09
7.0.60.0000.09019.92
7.0.50.0030.06017.93
7.0.40.0030.08020.15
7.0.30.0330.07320.12
7.0.20.0170.04720.21
7.0.10.0230.05720.22
7.0.00.0130.06320.14
5.6.280.0130.06720.93
5.6.210.0000.06320.51
5.6.200.0100.05718.20
5.6.190.0070.05020.46
5.6.180.3230.03320.77
5.6.170.0100.04720.47
5.6.160.0100.08020.47
5.6.150.0170.07318.29
5.6.140.0130.07718.15
5.6.130.0100.05018.18
5.6.120.0170.07321.16
5.6.110.0170.07321.13
5.6.100.0130.05321.14
5.6.90.0070.09021.02
5.6.80.0100.08020.41
5.6.70.4530.05320.38
5.5.350.0330.06720.41
5.5.340.0070.08317.98
5.5.330.0070.07320.40
5.5.320.0230.08720.35
5.5.310.0230.06320.34
5.5.300.0030.05318.03
5.5.290.0000.04318.08
5.5.280.0130.07720.94
5.5.270.0030.08020.88
5.5.260.0100.07020.89
5.5.250.0070.08020.61
5.5.240.0100.06320.08
5.4.450.0130.08019.52
5.4.440.0570.06019.27
5.4.430.0470.06019.48
5.4.420.0670.00019.52
5.4.410.0630.00019.44
5.4.400.0700.00019.22
5.4.390.0670.00018.99
5.4.380.0200.06718.79
5.4.370.0300.05318.58
5.4.360.0500.06318.63
5.4.350.0430.05318.72
5.4.340.0430.06018.60
5.4.320.0030.03912.53
5.4.310.0050.03912.52
5.4.300.0060.03712.52
5.4.290.0060.03812.52
5.4.280.0070.03512.42
5.4.270.0050.03912.42
5.4.260.0080.03712.42
5.4.250.0070.03712.42
5.4.240.0080.03512.42
5.4.230.0110.03412.41
5.4.220.0070.03612.41
5.4.210.0070.03912.41
5.4.200.0070.03712.41
5.4.190.0060.03712.41
5.4.180.0070.03912.40
5.4.170.0060.03512.41
5.4.160.0070.03412.41
5.4.150.0100.03212.41
5.4.140.0150.03412.09
5.4.130.0090.03212.08
5.4.120.0050.03912.04
5.4.110.0070.03412.04
5.4.100.0060.03612.03
5.4.90.0050.04012.03
5.4.80.0110.03612.03
5.4.70.0070.03712.02
5.4.60.0060.04312.02
5.4.50.0040.03812.03
5.4.40.0100.03612.01
5.4.30.0050.03612.01
5.4.20.0030.03712.01
5.4.10.0030.03912.01
5.4.00.0050.03811.50
5.3.290.0050.03912.80
5.3.280.0100.03712.71
5.3.270.0100.03712.73
5.3.260.0030.04112.72
5.3.250.0090.03612.72
5.3.240.0060.03712.72
5.3.230.0050.03812.70
5.3.220.0020.04012.68
5.3.210.0050.03912.68
5.3.200.0060.03612.68
5.3.190.0110.03612.67
5.3.180.0110.03512.67
5.3.170.0090.03312.67
5.3.160.0050.03612.67
5.3.150.0040.03812.67
5.3.140.0080.03312.66
5.3.130.0070.03712.66
5.3.120.0050.03912.66
5.3.110.0050.03912.65
5.3.100.0080.03612.12
5.3.90.0060.03612.10
5.3.80.0030.04012.09
5.3.70.0090.03612.09
5.3.60.0060.03612.07
5.3.50.0050.03712.02
5.3.40.0060.03712.02
5.3.30.0050.03611.98
5.3.20.0070.03311.76
5.3.10.0050.03511.73
5.3.00.0060.03511.71
5.2.170.0060.0289.18
5.2.160.0050.0289.18
5.2.150.0030.0319.18
5.2.140.0040.0319.18
5.2.130.0060.0279.14
5.2.120.0060.0279.14
5.2.110.0040.0309.15
5.2.100.0080.0269.14
5.2.90.0050.0299.14
5.2.80.0050.0309.14
5.2.70.0030.0329.14
5.2.60.0060.0289.10
5.2.50.0040.0309.07
5.2.40.0020.0359.04
5.2.30.0050.0339.02
5.2.20.0060.0289.00
5.2.10.0070.0348.92
5.2.00.0090.0348.79
5.1.60.0050.0348.07
5.1.50.0050.0318.07
5.1.40.0040.0248.05
5.1.30.0060.0258.40
5.1.20.0080.0248.42
5.1.10.0050.0258.14
5.1.00.0050.0258.15
5.0.50.0060.0196.63
5.0.40.0020.0196.48
5.0.30.0030.0316.29
5.0.20.0050.0206.26
5.0.10.0050.0186.24
5.0.00.0040.0296.23
4.4.90.0010.0174.78
4.4.80.0010.0174.75
4.4.70.0030.0184.76
4.4.60.0020.0194.76
4.4.50.0010.0164.77
4.4.40.0070.0274.71
4.4.30.0050.0194.76
4.4.20.0030.0174.85
4.4.10.0010.0174.84
4.4.00.0020.0254.76
4.3.110.0030.0154.67
4.3.100.0040.0134.67
4.3.90.0030.0154.63
4.3.80.0030.0234.59
4.3.70.0010.0174.63
4.3.60.0030.0134.63
4.3.50.0030.0214.63
4.3.40.0040.0304.54
4.3.30.0030.0193.28
4.3.20.0020.0173.25
4.3.10.0020.0153.22
4.3.00.0030.01315.60

preferences:
65.52 ms | 401 KiB | 5 Q