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) { var_dump($line); $parts = preg_split('/\s+/', $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.0070.00718.34
8.3.50.0110.00822.24
8.3.40.0080.00818.96
8.3.30.0060.00919.08
8.3.20.0040.00420.16
8.3.10.0000.00920.70
8.3.00.0040.00419.38
8.2.180.0100.01018.50
8.2.170.0060.00922.96
8.2.160.0090.00620.47
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0060.00326.16
8.2.120.0040.00422.35
8.2.110.0060.00322.23
8.2.100.0120.00018.16
8.2.90.0000.00819.05
8.2.80.0060.00318.00
8.2.70.0040.00417.75
8.2.60.0070.00418.05
8.2.50.0060.00318.07
8.2.40.0030.00618.28
8.2.30.0000.00819.35
8.2.20.0040.00417.91
8.2.10.0050.00318.11
8.2.00.0000.00817.81
8.1.280.0190.00025.92
8.1.270.0080.00323.86
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0060.00323.60
8.1.230.0060.00618.97
8.1.220.0000.00817.76
8.1.210.0050.00318.77
8.1.200.0100.00017.63
8.1.190.0000.00817.60
8.1.180.0000.00818.10
8.1.170.0050.00318.74
8.1.160.0000.00721.96
8.1.150.0000.00818.92
8.1.140.0040.00417.64
8.1.130.0000.00717.86
8.1.120.0040.00417.60
8.1.110.0040.00417.54
8.1.100.0000.00817.67
8.1.90.0070.00017.50
8.1.80.0070.00017.52
8.1.70.0020.00517.56
8.1.60.0030.00617.71
8.1.50.0060.00317.69
8.1.40.0030.00617.70
8.1.30.0000.00917.65
8.1.20.0000.00817.83
8.1.10.0000.00817.66
8.1.00.0030.00517.46
8.0.300.0090.00018.77
8.0.290.0040.00416.88
8.0.280.0040.00418.43
8.0.270.0030.00617.20
8.0.260.0030.00317.35
8.0.250.0000.00817.02
8.0.240.0000.00717.04
8.0.230.0000.00817.00
8.0.220.0070.00017.07
8.0.210.0040.00417.00
8.0.200.0090.00017.07
8.0.190.0040.00417.16
8.0.180.0000.00716.98
8.0.170.0040.00417.13
8.0.160.0090.00016.93
8.0.150.0040.00417.01
8.0.140.0040.00417.00
8.0.130.0070.00013.45
8.0.120.0050.00317.03
8.0.110.0080.00016.98
8.0.100.0000.00716.92
8.0.90.0000.00817.09
8.0.80.0100.00717.00
8.0.70.0000.00816.99
8.0.60.0000.00816.90
8.0.50.0000.00816.94
8.0.30.0100.01217.16
8.0.20.0090.01417.48
8.0.10.0080.00017.13
8.0.00.0150.00816.92
7.4.330.0050.00015.11
7.4.320.0030.00316.62
7.4.300.0030.00316.84
7.4.290.0070.00016.77
7.4.280.0050.00216.84
7.4.270.0070.00016.73
7.4.260.0040.00416.71
7.4.250.0000.00816.66
7.4.240.0040.00316.77
7.4.230.0070.00016.93
7.4.220.0090.01316.75
7.4.210.0060.00916.91
7.4.200.0050.00316.61
7.4.160.0040.01416.68
7.4.150.0030.01717.40
7.4.140.0090.01117.86
7.4.130.0110.01016.67
7.4.120.0170.00316.78
7.4.110.0150.00416.68
7.4.100.0140.00916.85
7.4.90.0160.00716.66
7.4.80.0090.00919.04
7.4.70.0090.00916.85
7.4.60.0070.01416.67
7.4.50.0080.00016.87
7.4.40.0180.00316.88
7.4.30.0110.00716.67
7.4.00.0090.00615.12
7.3.330.0000.00613.52
7.3.320.0050.00013.50
7.3.310.0000.00716.42
7.3.300.0070.00016.53
7.3.290.0090.00916.55
7.3.280.0080.01116.53
7.3.270.0100.01017.40
7.3.260.0220.00816.60
7.3.250.0110.01116.64
7.3.240.0110.00816.46
7.3.230.0170.00716.63
7.3.210.0120.00616.79
7.3.200.0110.00819.39
7.3.190.0060.01116.88
7.3.180.0140.00316.43
7.3.170.0140.00616.75
7.3.160.0070.01116.71
7.3.120.0070.00915.17
7.3.110.0080.00415.25
7.3.100.0010.00915.05
7.3.90.0080.00115.14
7.3.80.0110.00514.95
7.3.70.0040.00814.92
7.3.60.0050.01015.02
7.3.50.0050.00915.04
7.3.40.0050.01014.91
7.3.30.0040.01215.01
7.3.20.0060.00916.92
7.3.10.0050.00916.77
7.3.00.0110.00516.77
7.2.330.0060.01316.98
7.2.320.0190.00616.88
7.2.310.0100.01016.84
7.2.300.0070.01116.92
7.2.290.0110.00916.88
7.2.250.0090.00915.41
7.2.240.0100.00615.23
7.2.230.0030.01315.37
7.2.220.0050.01115.07
7.2.210.0050.01015.19
7.2.200.0060.01015.21
7.2.190.0120.00515.14
7.2.180.0090.00515.24
7.2.170.0050.01015.37
7.2.160.0020.01215.25
7.2.150.0070.01017.11
7.2.140.0070.01017.03
7.2.130.0070.00617.08
7.2.120.0060.01017.18
7.2.110.0050.01117.04
7.2.100.0050.01016.94
7.2.90.0030.01217.04
7.2.80.0030.01617.20
7.2.70.0090.00317.09
7.2.60.0080.00817.18
7.2.50.0060.01217.04
7.2.40.0050.00917.21
7.2.30.0030.01317.13
7.2.20.0030.01417.21
7.2.10.0050.01017.14
7.2.00.0010.01218.02
7.1.330.0000.01616.11
7.1.320.0050.00816.12
7.1.310.0060.00616.13
7.1.300.0080.00616.05
7.1.290.0050.00816.04
7.1.280.0080.00616.09
7.1.270.0040.00915.96
7.1.260.0110.00316.03
7.1.250.0110.00515.95
7.1.200.0030.01016.11
7.1.100.0080.00418.61
7.1.70.0070.01017.45
7.1.60.0100.01419.32
7.1.50.0030.02017.15
7.1.00.0070.07322.48
7.0.200.0070.00416.75
7.0.140.0030.07322.02
7.0.60.0100.05720.04
7.0.50.0030.04017.89
7.0.40.0130.04320.23
7.0.30.0230.05320.23
7.0.20.0400.06720.23
7.0.10.0030.04320.29
7.0.00.0100.08720.18
5.6.280.0030.07321.03
5.6.210.0070.03720.73
5.6.200.0070.06718.28
5.6.190.0070.08720.33
5.6.180.0430.08320.50
5.6.170.0430.06720.50
5.6.160.0100.07020.55
5.6.150.0070.04018.28
5.6.140.0130.05318.18
5.6.130.0100.05018.16
5.6.120.0100.05020.93
5.6.110.0100.08720.99
5.6.100.0170.07720.85
5.6.90.0170.04321.10
5.6.80.0000.08020.41
5.5.350.0170.08020.45
5.5.340.0070.08317.98
5.5.330.0130.08320.29
5.5.320.0130.04720.35
5.5.310.0300.04720.51
5.5.300.0070.06717.95
5.5.290.0100.07318.07
5.5.280.0100.04020.77
5.5.270.0100.08320.87
5.5.260.0170.05020.80
5.5.250.0100.07020.59
5.5.240.0230.05720.19
5.4.450.0100.03319.48
5.4.440.0870.06319.47
5.4.430.0570.06019.33
5.4.420.0670.00019.52
5.4.410.0630.00019.45
5.4.400.0670.00019.27
5.4.390.0730.00019.27
5.4.380.0430.05318.78
5.4.370.0700.06018.79
5.4.360.0370.05718.78
5.4.350.0370.08018.79
5.4.340.0400.06318.77
5.4.320.0080.03512.52
5.4.310.0080.03612.52
5.4.300.0040.03812.53
5.4.290.0070.04512.52
5.4.280.0090.04212.42
5.4.270.0030.04012.42
5.4.260.0100.04512.42
5.4.250.0120.04012.42
5.4.240.0070.04712.42
5.4.230.0050.03812.41
5.4.220.0060.03512.41
5.4.210.0090.04612.41
5.4.200.0080.04412.41
5.4.190.0050.03812.41
5.4.180.0050.03712.41
5.4.170.0080.03412.41
5.4.160.0070.03612.41
5.4.150.0080.03412.41
5.4.140.0040.03912.09
5.4.130.0060.04312.07
5.4.120.0060.03712.04
5.4.110.0050.05212.03
5.4.100.0060.03612.04
5.4.90.0100.03512.03
5.4.80.0090.03612.03
5.4.70.0060.03612.03
5.4.60.0130.04512.03
5.4.50.0090.03712.03
5.4.40.0070.04312.02
5.4.30.0060.04012.01
5.4.20.0110.03312.02
5.4.10.0050.03712.02
5.4.00.0040.03911.51
5.3.290.0070.03912.80
5.3.280.0040.04012.71
5.3.270.0120.04912.72
5.3.260.0090.05212.72
5.3.250.0060.03712.71
5.3.240.0060.03712.71
5.3.230.0070.03712.71
5.3.220.0050.03812.68
5.3.210.0090.03612.68
5.3.200.0090.03412.68
5.3.190.0090.03412.68
5.3.180.0100.03312.68
5.3.170.0090.03412.67
5.3.160.0070.03512.67
5.3.150.0070.03612.68
5.3.140.0070.03512.66
5.3.130.0030.04112.65
5.3.120.0070.03812.66
5.3.110.0050.03912.66
5.3.100.0090.03612.12
5.3.90.0050.04512.10
5.3.80.0070.04012.09
5.3.70.0070.03312.09
5.3.60.0100.03112.07
5.3.50.0080.03312.02
5.3.40.0100.03112.02
5.3.30.0080.03911.98
5.3.20.0060.04511.76
5.3.10.0070.03611.73
5.3.00.0080.03611.71
5.2.170.0050.0359.18
5.2.160.0080.0409.18
5.2.150.0090.0349.18
5.2.140.0050.0299.18
5.2.130.0030.0389.14
5.2.120.0040.0289.14
5.2.110.0070.0369.15
5.2.100.0040.0399.14
5.2.90.0060.0319.14
5.2.80.0060.0439.14
5.2.70.0070.0269.14
5.2.60.0030.0309.10
5.2.50.0050.0319.06
5.2.40.0050.0289.04
5.2.30.0040.0309.01
5.2.20.0020.0319.00
5.2.10.0090.0368.93
5.2.00.0060.0338.79
5.1.60.0030.0348.07
5.1.50.0030.0268.07
5.1.40.0060.0228.04
5.1.30.0030.0278.40
5.1.20.0050.0268.42
5.1.10.0020.0278.14
5.1.00.0030.0258.15
5.0.50.0020.0226.62
5.0.40.0060.0166.48
5.0.30.0040.0306.29
5.0.20.0030.0196.26
5.0.10.0020.0216.25
5.0.00.0030.0306.24
4.4.90.0050.0134.78
4.4.80.0020.0154.75
4.4.70.0020.0164.75
4.4.60.0020.0154.75
4.4.50.0030.0144.77
4.4.40.0010.0264.71
4.4.30.0040.0144.76
4.4.20.0030.0154.84
4.4.10.0000.0194.85
4.4.00.0030.0244.75
4.3.110.0010.0174.67
4.3.100.0060.0124.67
4.3.90.0030.0194.63
4.3.80.0030.0244.59
4.3.70.0040.0134.63
4.3.60.0000.0174.63
4.3.50.0040.0144.63
4.3.40.0020.0244.54
4.3.30.0020.0163.29
4.3.20.0040.0133.26
4.3.10.0020.0153.22
4.3.00.0000.01715.60

preferences:
42.48 ms | 401 KiB | 5 Q