3v4l.org

run code in 300+ PHP versions simultaneously
<?php $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($match[2], "\n"); foreach ($lines as $line) { $parts = preg_split('/\s+/', $line); $dir->parts = $parts; } $vhost->directories[] = $dir; } class Directory { public $dir = ''; public $parts = []; } class Vhost { public $directories = []; } //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.00618.55
8.3.50.0140.00822.09
8.3.40.0000.01519.04
8.3.30.0100.00719.13
8.3.20.0060.00920.22
8.3.10.0030.00620.77
8.3.00.0080.00019.63
8.2.180.0120.00318.79
8.2.170.0140.00322.96
8.2.160.0140.00019.38
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0000.00826.16
8.2.120.0040.00422.26
8.2.110.0040.00422.37
8.2.100.0040.00718.16
8.2.90.0030.00619.39
8.2.80.0040.00417.97
8.2.70.0030.00517.84
8.2.60.0100.00018.04
8.2.50.0050.00318.07
8.2.40.0000.00818.28
8.2.30.0040.00419.32
8.2.20.0050.00217.88
8.2.10.0000.00718.02
8.2.00.0040.00417.88
8.1.280.0070.01125.92
8.1.270.0060.00323.91
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0080.00022.05
8.1.230.0080.00419.16
8.1.220.0040.00417.79
8.1.210.0000.00918.77
8.1.200.0060.00317.35
8.1.190.0080.00017.35
8.1.180.0030.00518.10
8.1.170.0040.00418.63
8.1.160.0000.00722.05
8.1.150.0000.00718.82
8.1.140.0000.00817.65
8.1.130.0030.00317.91
8.1.120.0050.00217.52
8.1.110.0000.00817.55
8.1.100.0070.00017.47
8.1.90.0000.00717.58
8.1.80.0000.00717.61
8.1.70.0000.00717.52
8.1.60.0030.00517.79
8.1.50.0080.00017.66
8.1.40.0060.00317.63
8.1.30.0040.00417.79
8.1.20.0030.00517.79
8.1.10.0040.00417.77
8.1.00.0000.00717.50
8.0.300.0080.00018.77
8.0.290.0040.00416.88
8.0.280.0020.00518.48
8.0.270.0040.00417.30
8.0.260.0000.00717.34
8.0.250.0030.00317.12
8.0.240.0000.00717.17
8.0.230.0050.00217.06
8.0.220.0040.00416.96
8.0.210.0030.00317.12
8.0.200.0060.00317.20
8.0.190.0070.00017.00
8.0.180.0040.00417.16
8.0.170.0080.00017.13
8.0.160.0000.00817.07
8.0.150.0030.00417.12
8.0.140.0040.00417.02
8.0.130.0030.00313.45
8.0.120.0000.00817.05
8.0.110.0070.00017.06
8.0.100.0070.00017.12
8.0.90.0030.00516.98
8.0.80.0060.01017.05
8.0.70.0000.00817.06
8.0.60.0050.00217.07
8.0.50.0040.00417.07
8.0.30.0100.01017.27
8.0.20.0110.01217.51
8.0.10.0040.00417.14
8.0.00.0100.00916.95
7.4.330.0000.00515.04
7.4.320.0030.00316.71
7.4.300.0040.00416.69
7.4.290.0070.00016.76
7.4.280.0000.00716.70
7.4.270.0030.00316.72
7.4.260.0000.00816.65
7.4.250.0000.00816.66
7.4.240.0020.00516.76
7.4.230.0070.00016.74
7.4.220.0140.00416.79
7.4.210.0110.00316.74
7.4.200.0000.00816.88
7.4.160.0080.00816.54
7.4.150.0220.00717.40
7.4.140.0100.00717.86
7.4.130.0080.01116.68
7.4.120.0080.01016.77
7.4.110.0120.00616.74
7.4.100.0110.00716.53
7.4.90.0100.01016.96
7.4.80.0060.01019.04
7.4.70.0130.01016.85
7.4.60.0100.00716.61
7.4.50.0080.00016.67
7.4.40.0120.00416.79
7.4.30.0120.00316.69
7.4.00.0080.00814.91
7.3.330.0050.00013.57
7.3.320.0000.00513.43
7.3.310.0000.00716.54
7.3.300.0000.00816.62
7.3.290.0090.00616.59
7.3.280.0100.00816.52
7.3.270.0150.00617.40
7.3.260.0090.00916.52
7.3.250.0080.01216.66
7.3.240.0100.00616.82
7.3.230.0100.00716.52
7.3.210.0130.00316.65
7.3.200.0070.01719.39
7.3.190.0140.00316.80
7.3.180.0030.01316.78
7.3.170.0110.00816.71
7.3.160.0080.00816.80
7.2.330.0140.00316.99
7.2.320.0110.00716.96
7.2.310.0070.01416.89
7.2.300.0160.00016.89
7.2.290.0070.01416.93
7.2.120.0030.00916.91
7.2.110.0030.01016.94
7.2.100.0060.00616.94
7.2.90.0030.01016.73
7.2.80.0070.01116.91
7.2.70.0000.01316.89
7.2.60.0070.00716.82
7.2.50.0070.00717.19
7.2.40.0100.00717.11
7.2.30.0110.00317.07
7.2.20.0060.01017.14
7.2.10.0000.01117.03
7.2.00.0000.01118.46
7.1.240.0030.00616.10
7.1.230.0000.01015.96
7.1.220.0030.00915.96
7.1.210.0060.00616.02
7.1.200.0070.00716.06
7.1.190.0030.01015.81
7.1.180.0060.00316.01
7.1.170.0130.00016.13
7.1.160.0100.00316.19
7.1.150.0120.00316.21
7.1.140.0100.00715.95
7.1.130.0050.00515.68
7.1.120.0070.00716.11
7.1.110.0030.00915.83
7.1.100.0040.00717.20
7.1.90.0030.01215.79
7.1.80.0030.01015.93
7.1.70.0020.00916.78
7.1.60.0050.01417.66
7.1.50.0020.01616.34
7.1.40.0130.00015.95
7.1.30.0060.00616.09
7.1.20.0070.00315.77
7.1.10.0060.00615.95
7.1.00.0080.03819.22
7.0.320.0040.00815.71
7.0.310.0030.00915.52
7.0.300.0030.00515.25
7.0.290.0100.00315.43
7.0.280.0060.01015.50
7.0.270.0000.00715.64
7.0.260.0040.00715.53
7.0.250.0080.00415.63
7.0.240.0070.00715.70
7.0.230.0040.00415.55
7.0.220.0100.00315.82
7.0.210.0000.01115.80
7.0.200.0080.00716.25
7.0.190.0000.00715.51
7.0.180.0090.00615.56
7.0.170.0030.01015.78
7.0.160.0070.00715.39
7.0.150.0000.00915.66
7.0.140.0030.04118.98
7.0.130.0000.01515.68
7.0.120.0030.01015.58
7.0.110.0070.00715.63
7.0.100.0100.00315.29
7.0.90.0070.00715.25
7.0.80.0070.00715.26
7.0.70.0030.00715.58
7.0.60.0050.04717.74
7.0.50.0030.03716.66
7.0.40.0040.03517.08
7.0.30.0270.03916.95
7.0.20.0150.02816.93
7.0.10.0180.03816.93
7.0.00.0020.02816.81
5.6.380.0060.00614.51
5.6.370.0070.01014.78
5.6.360.0070.00714.71
5.6.350.0060.00914.56
5.6.340.0070.00314.42
5.6.330.0040.00414.84
5.6.320.0070.00714.49
5.6.310.0030.00914.70
5.6.300.0090.00314.60
5.6.290.0030.01014.89
5.6.280.0030.04317.83
5.6.270.0070.00714.55
5.6.260.0060.00614.64
5.6.250.0070.00714.50
5.6.240.0030.00614.57
5.6.230.0060.00314.31
5.6.220.0030.00914.66
5.6.210.0080.03717.45
5.6.200.0050.02316.36
5.6.190.0050.04017.61
5.6.180.0130.02917.50
5.6.170.0150.02117.55
5.6.160.0050.02417.51
5.6.150.0050.03616.60
5.6.140.0040.02616.36
5.6.130.0070.04416.45
5.6.120.0040.02217.91
5.6.110.0090.04317.64
5.6.100.0070.04017.85
5.6.90.0050.03517.85
5.6.80.0040.02317.44
5.6.70.0050.04317.30
5.6.60.0070.00714.34
5.6.50.0090.00614.55
5.6.40.0100.00314.42
5.6.30.0040.00814.44
5.6.20.0030.01014.47
5.6.10.0060.00314.77
5.6.00.0030.00714.53
5.5.380.0050.00511.66
5.5.370.0040.00711.30
5.5.360.0000.00911.11
5.5.350.0090.03015.80
5.5.340.0030.02014.72
5.5.330.0110.04115.89
5.5.320.0250.03115.71
5.5.310.0250.04015.74
5.5.300.0050.02014.82
5.5.290.0040.04314.71
5.5.280.0040.03616.14
5.5.270.0030.02716.17
5.5.260.0030.04816.06
5.5.250.0080.03816.07
5.5.240.0050.03015.71
5.5.230.0000.00711.32
5.5.220.0120.00011.40
5.5.210.0030.00711.09
5.5.200.0060.00311.52
5.5.190.0030.00711.46
5.5.180.0080.00311.51
5.5.170.0090.00614.11
5.5.160.0000.01111.33
5.5.150.0000.01111.24
5.5.140.0030.00311.14
5.5.130.0030.00311.37
5.5.120.0000.00511.51
5.5.110.0040.00811.36
5.5.100.0040.00811.10
5.5.90.0080.00311.13
5.5.80.0060.00311.08
5.5.70.0030.00311.17
5.5.60.0070.00311.30
5.5.50.0040.00811.50
5.5.40.0050.00511.46
5.5.30.0040.00411.30
5.5.20.0060.00311.41
5.5.10.0040.00711.20
5.5.00.0040.00811.56
5.4.450.0170.01815.53
5.4.440.0470.04315.15
5.4.430.0460.03115.40
5.4.420.0410.00215.40
5.4.410.0360.00315.43
5.4.400.0490.00015.41
5.4.390.0420.00315.17
5.4.380.0180.03114.87
5.4.370.0160.03314.92
5.4.360.0190.03214.92
5.4.350.0200.03614.83
5.4.340.0270.02714.78
5.4.330.0080.00411.32
5.4.320.0050.02211.91
5.4.310.0110.02511.96
5.4.300.0100.02211.89
5.4.290.0060.02411.81
5.4.280.0080.01911.77
5.4.270.0090.01811.82
5.4.260.0050.02211.83
5.4.250.0060.02011.71
5.4.240.0040.02311.86
5.4.230.0080.01911.87
5.4.220.0060.02011.86
5.4.210.0080.01811.91
5.4.200.0050.02311.75
5.4.190.0060.02011.82
5.4.180.0060.02011.72
5.4.170.0070.01811.75
5.4.160.0050.01911.85
5.4.150.0070.02511.78
5.4.140.0050.02411.67
5.4.130.0070.01811.83
5.4.120.0060.02011.55
5.4.110.0050.02111.65
5.4.100.0070.02011.54
5.4.90.0050.02611.69
5.4.80.0070.02111.64
5.4.70.0080.01911.64
5.4.60.0060.02111.54
5.4.50.0080.01811.70
5.4.40.0050.02011.54
5.4.30.0090.01911.58
5.4.20.0080.01911.54
5.4.10.0060.01911.67
5.4.00.0040.02411.44
5.3.290.0070.02511.54
5.3.280.0040.02411.32
5.3.270.0020.02711.47
5.3.260.0080.02211.42
5.3.250.0060.02811.32
5.3.240.0050.02111.37
5.3.230.0080.02111.45
5.3.220.0080.02511.40
5.3.210.0030.02611.41
5.3.200.0040.02011.43
5.3.190.0070.02511.37
5.3.180.0080.02011.49
5.3.170.0060.02211.48
5.3.160.0060.02011.36
5.3.150.0080.02411.47
5.3.140.0040.02211.43
5.3.130.0040.02511.33
5.3.120.0060.02511.40
5.3.110.0060.02011.37
5.3.100.0050.02111.09
5.3.90.0050.02111.17
5.3.80.0080.02111.11
5.3.70.0080.02111.12
5.3.60.0070.02211.06
5.3.50.0080.01911.06
5.3.40.0060.02411.06
5.3.30.0040.02511.03
5.3.20.0020.02110.89
5.3.10.0050.02010.86
5.3.00.0050.02110.83
5.2.170.0070.0159.22
5.2.160.0060.0179.09
5.2.150.0050.0179.25
5.2.140.0050.0209.08
5.2.130.0070.0209.17
5.2.120.0070.0169.04
5.2.110.0080.0199.04
5.2.100.0040.0189.17
5.2.90.0050.0199.18
5.2.80.0050.0179.15
5.2.70.0070.0169.15
5.2.60.0040.0159.02
5.2.50.0050.0169.14
5.2.40.0020.0199.06
5.2.30.0020.0189.10
5.2.20.0020.0209.04
5.2.10.0040.0178.91
5.2.00.0030.0168.85
5.1.60.0050.0158.48
5.1.50.0020.0168.48
5.1.40.0010.0178.47
5.1.30.0050.0158.64
5.1.20.0040.0158.65
5.1.10.0050.0148.52
5.1.00.0060.0138.52
5.0.50.0010.0147.76
5.0.40.0050.0097.69
5.0.30.0030.0177.59
5.0.20.0020.0137.58
5.0.10.0010.0147.57
5.0.00.0050.0167.56
4.4.90.0020.0086.83
4.4.80.0010.0106.82
4.4.70.0020.0116.82
4.4.60.0040.0106.82
4.4.50.0030.0106.83
4.4.40.0020.0166.80
4.4.30.0020.0096.82
4.4.20.0020.0136.87
4.4.10.0040.0086.87
4.4.00.0020.0156.83
4.3.110.0030.0106.78
4.3.100.0040.0096.78
4.3.90.0020.0106.76
4.3.80.0040.0146.74
4.3.70.0030.0126.76
4.3.60.0040.0096.76
4.3.50.0030.0096.76
4.3.40.0020.0146.71
4.3.30.0010.0126.09
4.3.20.0020.0106.07
4.3.10.0040.0076.06
4.3.00.0030.00812.25

preferences:
60.88 ms | 401 KiB | 5 Q