3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regex = '/s+/'; $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>'; var_dump(preg_split($regex, $vhost)); //var_dump($matches); $vhostRegEx = '/<VirtualHost (\d{1,3}\.\d{1,3}.\d{1,3}.\d{1,3}):(\d+)>([\s\S]+)<\/VirtualHost>/'; $matches = []; if (!preg_match($vhostRegEx, $vHost, $matches)) { throw new \Exception("No VHost Found"); } 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.68
8.3.50.0120.00916.41
8.3.40.0090.00618.91
8.3.30.0070.00719.09
8.3.20.0000.00720.25
8.3.10.0080.00023.48
8.3.00.0100.00019.50
8.2.180.0060.00916.88
8.2.170.0120.00322.96
8.2.160.0120.00320.42
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00422.13
8.2.110.0030.00622.33
8.2.100.0030.01017.75
8.2.90.0060.00319.22
8.2.80.0040.00417.97
8.2.70.0000.00817.61
8.2.60.0080.00018.05
8.2.50.0100.00318.07
8.2.40.0040.00420.07
8.2.30.0030.00618.05
8.2.20.0050.00317.90
8.2.10.0040.00418.06
8.2.00.0040.00417.87
8.1.280.0070.00725.92
8.1.270.0080.00324.01
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0100.00023.84
8.1.230.0080.00319.10
8.1.220.0000.00817.75
8.1.210.0000.00818.77
8.1.200.0030.00617.48
8.1.190.0030.00517.47
8.1.180.0000.00818.10
8.1.170.0000.00918.63
8.1.160.0000.00821.95
8.1.150.0000.00818.91
8.1.140.0070.00017.64
8.1.130.0000.00717.89
8.1.120.0000.00717.61
8.1.110.0040.00417.64
8.1.100.0040.00417.64
8.1.90.0080.00017.63
8.1.80.0000.00817.50
8.1.70.0000.00817.60
8.1.60.0000.01017.71
8.1.50.0060.00317.64
8.1.40.0000.00817.61
8.1.30.0030.00517.83
8.1.20.0000.00717.77
8.1.10.0000.00817.78
8.1.00.0040.00417.67
8.0.300.0000.00718.77
8.0.290.0070.00016.84
8.0.280.0000.00718.40
8.0.270.0040.00417.29
8.0.260.0070.00017.16
8.0.250.0000.00817.07
8.0.240.0060.00017.19
8.0.230.0000.00717.03
8.0.220.0070.00017.00
8.0.210.0070.00017.16
8.0.200.0000.00617.20
8.0.190.0000.00717.18
8.0.180.0020.00517.14
8.0.170.0030.00617.08
8.0.160.0040.00417.06
8.0.150.0050.00317.08
8.0.140.0040.00416.95
8.0.130.0000.00613.62
8.0.120.0060.00317.07
8.0.110.0020.00516.98
8.0.100.0040.00416.95
8.0.90.0000.00717.11
8.0.80.0160.00617.04
8.0.70.0000.00717.08
8.0.60.0000.00716.92
8.0.50.0000.00716.97
8.0.30.0080.01317.36
8.0.20.0150.00317.40
8.0.10.0040.00417.21
8.0.00.0080.01016.87
7.4.330.0000.00515.16
7.4.320.0000.00616.82
7.4.300.0060.00016.72
7.4.290.0000.00716.67
7.4.280.0090.00316.80
7.4.270.0030.00316.73
7.4.260.0030.00716.64
7.4.250.0000.00716.79
7.4.240.0000.00716.84
7.4.230.0070.00016.80
7.4.220.0150.00416.77
7.4.210.0070.01416.69
7.4.200.0030.00316.55
7.4.160.0060.00916.61
7.4.150.0190.00717.40
7.4.140.0150.00517.86
7.4.130.0120.00816.72
7.4.120.0120.00816.76
7.4.110.0100.00716.85
7.4.100.0100.00716.67
7.4.90.0120.01216.75
7.4.80.0170.00019.39
7.4.70.0110.01416.57
7.4.60.0110.00816.68
7.4.50.0080.00016.69
7.4.40.0130.00316.63
7.4.30.0140.00316.75
7.4.00.0030.01015.30
7.3.330.0050.00013.25
7.3.320.0000.00513.13
7.3.310.0040.00416.54
7.3.300.0030.00316.37
7.3.290.0120.00516.43
7.3.280.0140.00316.42
7.3.270.0040.01317.40
7.3.260.0170.00816.47
7.3.250.0110.00616.51
7.3.240.0090.00916.59
7.3.230.0090.00916.52
7.3.210.0090.00916.62
7.3.200.0100.00719.39
7.3.190.0080.00916.61
7.3.180.0090.01216.45
7.3.170.0040.01816.46
7.3.160.0080.00816.52
7.3.10.0150.00316.85
7.3.00.0030.01116.86
7.2.330.0000.01816.55
7.2.320.0130.01316.72
7.2.310.0090.00916.49
7.2.300.0060.01216.53
7.2.290.0030.01716.68
7.2.130.0090.00417.00
7.2.120.0120.00616.80
7.2.110.0080.00917.12
7.2.100.0130.00617.01
7.2.90.0090.00916.98
7.2.80.0000.01616.83
7.2.70.0000.01617.20
7.2.60.0130.00317.07
7.2.50.0120.00617.04
7.2.40.0030.01716.76
7.2.30.0030.01617.11
7.2.20.0030.01717.03
7.2.10.0140.00316.68
7.2.00.0040.00918.17
7.1.250.0060.00615.88
7.1.200.0080.00415.89
7.1.100.0000.01118.02
7.1.70.0110.00017.29
7.1.60.0090.01619.11
7.1.50.0030.01017.26
7.1.00.0070.07322.56
7.0.200.0040.00416.93
7.0.140.0070.07022.08
7.0.60.0100.06720.04
7.0.50.0030.05317.69
7.0.40.0030.07319.92
7.0.30.0330.07720.20
7.0.20.0100.04720.35
7.0.10.0270.05720.32
7.0.00.0070.07020.21
5.6.280.0000.07721.09
5.6.210.0130.07720.55
5.6.200.0070.05018.23
5.6.190.0130.08320.41
5.6.180.0300.04020.46
5.6.170.0300.07720.47
5.6.160.0100.05720.45
5.6.150.0030.08318.29
5.6.140.0070.04318.16
5.6.130.0070.08718.24
5.6.120.0130.08020.95
5.6.110.0100.04721.00
5.6.100.0070.04021.02
5.6.90.0100.08321.10
5.6.80.0070.07720.40
5.6.70.0070.03720.52
5.5.350.0070.08020.44
5.5.340.0000.04018.05
5.5.330.0130.06020.27
5.5.320.0330.06020.34
5.5.310.0230.06320.26
5.5.300.0100.03717.95
5.5.290.0030.04718.05
5.5.280.0070.04720.84
5.5.270.0170.06020.72
5.5.260.0070.08720.76
5.5.250.0070.08720.58
5.5.240.0400.06320.06
5.4.450.4070.05019.25
5.4.440.3400.04019.31
5.4.430.3470.04319.18
5.4.420.3300.03719.39
5.4.410.3530.03719.18
5.4.400.3630.03719.09
5.4.390.4170.03319.14
5.4.380.4070.03719.10
5.4.370.3230.04319.07
5.4.360.3400.03318.89
5.4.350.3270.03719.06
5.4.340.2900.04018.92
5.4.320.4200.04018.96
5.4.310.3930.04019.07
5.4.300.3600.03719.13
5.4.290.4230.04319.11
5.4.280.4230.03319.07
5.4.270.2970.03319.15
5.4.260.3130.03318.87
5.4.250.3230.04318.98
5.4.240.3330.03719.14
5.4.230.3400.03319.14
5.4.220.3370.03719.06
5.4.210.3400.03018.86
5.4.200.2430.03719.07
5.4.190.3470.03718.97
5.4.180.3400.04019.07
5.4.170.3230.04719.07
5.4.160.3330.03719.09
5.4.150.3300.04318.94
5.4.140.4170.03716.43
5.4.130.4230.03316.42
5.4.120.4100.03016.55
5.4.110.4130.03316.39
5.4.100.3970.03316.60
5.4.90.4030.03716.63
5.4.80.4300.03716.21
5.4.70.4300.03016.44
5.4.60.4170.04016.43
5.4.50.3370.03316.47
5.4.40.3270.04016.23
5.4.30.3330.03316.30
5.4.20.3800.03316.23
5.4.10.3430.03716.55
5.4.00.3470.03715.82
5.3.290.3730.03714.69
5.3.280.3300.05314.62
5.3.270.3270.03714.47
5.3.260.3500.04014.46
5.3.250.4830.02314.55
5.3.240.4170.03314.63
5.3.230.4230.04014.52
5.3.220.4300.03314.52
5.3.210.4200.03714.51
5.3.200.4330.03714.51
5.3.190.4100.03314.52
5.3.180.4200.04014.40
5.3.170.4330.03714.51
5.3.160.4000.04314.42
5.3.150.3630.04314.47
5.3.140.3470.04314.41
5.3.130.3600.03314.49
5.3.120.3800.03314.50
5.3.110.3600.04714.42
5.3.100.3500.03714.11
5.3.90.3600.03314.11
5.3.80.4070.03313.86
5.3.70.3370.04313.97
5.3.60.4430.03713.80
5.3.50.3530.03713.85
5.3.40.3870.03013.82
5.3.30.3770.04313.81
5.3.20.4200.03313.52
5.3.10.3370.03313.70
5.3.00.3530.04013.52
5.2.170.2430.03311.00
5.2.160.3100.02311.03
5.2.150.3030.03011.29
5.2.140.3670.03311.05
5.2.130.3330.03710.99
5.2.120.3200.03011.25
5.2.110.2830.02011.25
5.2.100.2730.03011.28
5.2.90.3000.02310.96
5.2.80.3030.03011.05
5.2.70.2930.02710.94
5.2.60.3070.02310.89
5.2.50.3200.02710.86
5.2.40.2230.02310.85
5.2.30.2570.02710.91
5.2.20.2930.05310.97
5.2.10.2670.02710.72
5.2.00.1670.03310.71
5.1.60.2670.02710.07
5.1.50.3000.0239.87
5.1.40.2600.02310.05
5.1.30.2970.02710.38
5.1.20.2870.02310.48
5.1.10.2500.01710.01
5.1.00.2600.0279.93
5.0.50.1430.0238.45
5.0.40.1470.0208.28
5.0.30.1370.0338.34
5.0.20.0800.0238.43
5.0.10.1570.0238.29
5.0.00.1170.0278.05
4.4.90.1330.0206.59
4.4.80.1430.0176.59
4.4.70.1670.0076.06
4.4.60.1370.0136.06
4.4.50.1400.0136.06
4.4.40.1330.0236.06
4.4.30.1700.0106.06
4.4.20.1330.0136.06
4.4.10.1570.0176.06
4.4.00.1530.0236.06
4.3.110.1330.0136.06
4.3.100.1270.0136.06
4.3.90.1400.0176.06
4.3.80.1230.0236.06
4.3.70.1430.0176.06
4.3.60.1100.0176.06
4.3.50.1130.0106.06
4.3.40.1370.0306.06
4.3.30.0770.0206.06
4.3.20.0730.0276.06
4.3.10.0730.0206.06
4.3.00.0700.0276.06

preferences:
40.86 ms | 400 KiB | 5 Q