3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'CustomErrorLog "/errorlog wtf" hello bvc "jjrr" hello rrgg/x^$46/ "rggg£"'; preg_match('/"([^"]*)"|\S+/', $str, $matches); $errorLog = 'syslog:wtf'; var_dump(false !== preg_match('/^syslog:/', $errorLog)); //var_dump(false !== strpos($errorLog, "syslog:"));

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.0210.00018.43
8.3.50.0250.01022.16
8.3.40.0180.00018.79
8.3.30.0140.00018.96
8.3.20.0080.00020.34
8.3.10.0000.00823.57
8.3.00.0030.00519.38
8.2.180.0080.00816.63
8.2.170.0070.01122.96
8.2.160.0130.00320.29
8.2.150.0000.00724.18
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0080.00022.35
8.2.110.0060.00322.38
8.2.100.0120.00017.75
8.2.90.0040.00419.08
8.2.80.0080.00017.97
8.2.70.0030.00717.75
8.2.60.0030.00617.91
8.2.50.0030.00718.07
8.2.40.0040.00417.90
8.2.30.0030.00517.89
8.2.20.0080.00017.89
8.2.10.0040.00417.88
8.2.00.0040.00417.82
8.1.280.0110.00425.92
8.1.270.0080.00021.93
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0060.00323.92
8.1.230.0120.00017.42
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0060.00317.23
8.1.180.0060.00318.10
8.1.170.0030.00518.66
8.1.160.0040.00422.00
8.1.150.0040.00418.87
8.1.140.0040.00417.48
8.1.130.0000.00817.82
8.1.120.0000.00717.56
8.1.110.0040.00417.43
8.1.100.0000.00717.44
8.1.90.0000.00817.40
8.1.80.0050.00317.51
8.1.70.0070.00017.46
8.1.60.0040.00417.66
8.1.50.0080.00017.50
8.1.40.0040.00417.58
8.1.30.0030.00517.58
8.1.20.0000.00717.64
8.1.10.0080.00017.68
8.1.00.0030.00517.52
8.0.300.0000.00818.77
8.0.290.0000.00816.75
8.0.280.0030.00418.30
8.0.270.0040.00417.18
8.0.260.0000.00617.19
8.0.250.0000.00716.94
8.0.240.0030.00617.05
8.0.230.0030.00316.89
8.0.220.0050.00216.84
8.0.210.0000.00716.81
8.0.200.0050.00217.03
8.0.190.0040.00416.89
8.0.180.0000.00816.86
8.0.170.0080.00016.94
8.0.160.0050.00216.97
8.0.150.0000.00816.89
8.0.140.0000.00716.88
8.0.130.0030.00313.27
8.0.120.0040.00416.93
8.0.110.0000.00816.93
8.0.100.0040.00416.90
8.0.90.0000.00716.82
8.0.80.0130.00316.91
8.0.70.0040.00416.98
8.0.60.0030.00317.00
8.0.50.0000.00717.02
8.0.30.0130.00717.14
8.0.20.0140.00417.41
8.0.10.0030.00516.96
8.0.00.0070.01016.94
7.4.330.0000.00715.02
7.4.320.0060.00016.61
7.4.300.0030.00316.61
7.4.290.0030.00316.71
7.4.280.0030.00616.70
7.4.270.0050.00216.73
7.4.260.0030.00316.81
7.4.250.0040.00416.73
7.4.240.0000.00716.68
7.4.230.0050.00316.79
7.4.220.0110.01116.68
7.4.210.0110.00616.68
7.4.200.0030.00316.82
7.4.160.0080.00816.72
7.4.150.0060.01217.40
7.4.140.0080.01217.86
7.4.130.0110.00616.70
7.4.120.0070.01116.68
7.4.110.0080.01216.79
7.4.100.0070.01116.75
7.4.90.0060.00916.56
7.4.80.0080.00819.39
7.4.70.0120.00916.51
7.4.60.0090.01216.57
7.4.50.0030.00516.71
7.4.40.0100.00716.51
7.4.30.0170.00016.66
7.4.00.0030.01314.82
7.3.330.0000.00613.26
7.3.320.0030.00313.29
7.3.310.0030.00316.43
7.3.300.0040.00416.25
7.3.290.0080.00616.42
7.3.280.0110.00616.37
7.3.270.0110.00717.40
7.3.260.0130.00316.61
7.3.250.0100.00716.44
7.3.240.0140.00716.31
7.3.230.0150.00416.39
7.3.210.0100.00616.69
7.3.200.0180.00319.39
7.3.190.0100.00716.47
7.3.180.0090.00616.32
7.3.170.0130.00316.46
7.3.160.0070.01016.54
7.3.10.0030.01316.45
7.3.00.0080.00316.78
7.2.330.0130.00716.46
7.2.320.0060.01016.75
7.2.310.0060.01216.58
7.2.300.0140.00316.82
7.2.290.0070.01716.59
7.2.130.0120.00316.82
7.2.120.0030.00916.66
7.2.110.0040.01116.89
7.2.100.0060.00616.82
7.2.90.0100.00316.73
7.2.80.0060.00916.99
7.2.70.0070.01016.86
7.2.60.0050.00916.95
7.2.50.0070.00317.00
7.2.40.0000.00916.88
7.2.30.0070.00716.88
7.2.20.0140.00316.90
7.2.10.0060.00617.01
7.2.00.0090.00617.01
7.1.250.0090.00315.84
7.1.200.0070.00715.57
7.1.70.0000.00717.36
7.1.60.0000.01219.32
7.1.50.0250.01034.65
7.1.00.0070.07322.29
7.0.200.0000.00816.92
7.0.140.0070.07022.07
7.0.60.0130.08020.00
7.0.50.0030.08317.88
7.0.40.0100.05320.19
7.0.30.0270.04320.11
7.0.20.0270.08320.18
7.0.10.0070.08320.18
7.0.00.0030.06320.18
5.6.210.0170.07020.68
5.6.200.0130.07718.18
5.6.190.0070.08320.57
5.6.180.3030.04020.77
5.6.170.0300.07020.50
5.6.160.0100.08020.40
5.6.150.0100.07718.16
5.6.140.0070.08318.21
5.6.130.0200.06318.20
5.6.120.0070.08721.01
5.6.110.0130.07720.88
5.6.100.0170.07320.94
5.6.90.0170.05321.01
5.6.80.0070.05720.27
5.6.70.4470.03720.36
5.5.350.0270.06720.34
5.5.340.0130.06717.91
5.5.330.0100.07720.42
5.5.320.3400.04320.29
5.5.310.0400.07020.30
5.5.300.0000.07317.91
5.5.290.0030.09018.05
5.5.280.0070.05020.87
5.5.270.0030.04020.87
5.5.260.0070.06320.86
5.5.250.0130.08320.68
5.5.240.0270.06720.03
5.4.450.4200.04019.41
5.4.440.3100.03719.13
5.4.430.2800.04319.17
5.4.420.3330.02719.22
5.4.410.4970.04019.11
5.4.400.2470.03719.08
5.4.390.3600.03719.09
5.4.380.3970.03319.09
5.4.370.4000.04019.06
5.4.360.3900.04018.80
5.4.350.4230.03719.09
5.4.340.4000.03319.24
5.4.320.3930.04018.81
5.4.310.3830.04018.93
5.4.300.3630.03718.88
5.4.290.3930.03719.13
5.4.280.3930.03719.08
5.4.270.3870.03719.06
5.4.260.3700.04319.15
5.4.250.3770.04319.09
5.4.240.3930.03719.15
5.4.230.4030.04019.25
5.4.220.4130.03318.78
5.4.210.4000.04018.87
5.4.200.3100.04319.13
5.4.190.3900.04019.08
5.4.180.4230.04018.87
5.4.170.3700.03019.14
5.4.160.3400.03718.86
5.4.150.4230.03019.11
5.4.140.4600.03716.36
5.4.130.4330.04716.31
5.4.120.4000.03316.53
5.4.110.3930.03716.06
5.4.100.4070.03716.30
5.4.90.4300.03716.20
5.4.80.4230.04016.43
5.4.70.3900.03316.37
5.4.60.3570.04016.22
5.4.50.4170.03316.18
5.4.40.5130.03316.47
5.4.30.3930.03716.38
5.4.20.3930.03716.46
5.4.10.3670.03316.45
5.4.00.3970.03715.68
5.3.290.4400.04314.51
5.3.280.3730.03314.46
5.3.270.3870.03714.55
5.3.260.4170.03314.55
5.3.250.4470.03314.45
5.3.240.4670.04014.45
5.3.230.3670.05714.54
5.3.220.4030.02314.42
5.3.210.3730.04014.65
5.3.200.4000.03314.51
5.3.190.3870.04014.53
5.3.180.3930.03714.43
5.3.170.3900.04014.60
5.3.160.3970.03714.61
5.3.150.3600.04014.46
5.3.140.3870.04014.50
5.3.130.3470.03714.59
5.3.120.4830.04314.38
5.3.110.2900.04014.63
5.3.100.3400.03713.89
5.3.90.4000.02714.11
5.3.80.4070.03314.00
5.3.70.3800.02313.89
5.3.60.3570.03713.83
5.3.50.4170.04313.74
5.3.40.3430.03713.97
5.3.30.3930.04013.75
5.3.20.4630.02713.60
5.3.10.3800.03713.45
5.3.00.3770.03713.68
5.2.170.3170.02711.19
5.2.160.3170.02311.03
5.2.150.3300.03010.97
5.2.140.4030.02711.23
5.2.130.3900.02711.20
5.2.120.3800.03310.95
5.2.110.3170.02710.96
5.2.100.3230.02311.15
5.2.90.3370.02311.01
5.2.80.2770.03710.92
5.2.70.2870.03310.95
5.2.60.3000.03010.89
5.2.50.2800.02711.06
5.2.40.1200.02710.93
5.2.30.1300.02711.01
5.2.20.1700.02710.89
5.2.10.2330.03310.76
5.2.00.2300.03310.82
5.1.60.2430.0279.86
5.1.50.1600.02710.15
5.1.40.2030.02010.06
5.1.30.2330.02010.44
5.1.20.1800.03010.36
5.1.10.2430.0279.98
5.1.00.2300.02310.15
5.0.50.0600.0239.72
5.0.40.1170.0209.72
5.0.30.1430.0279.72
5.0.20.1530.0209.72
5.0.10.1730.0209.72
5.0.00.1430.0309.72
4.4.90.0670.0179.72
4.4.80.0800.0139.72
4.4.70.1030.0179.72
4.4.60.1170.0179.72
4.4.50.1100.0179.72
4.4.40.1100.0239.72
4.4.30.0770.0139.72
4.4.20.1270.0109.72
4.4.10.0930.0179.72
4.4.00.1230.0209.72
4.3.110.1370.0209.72
4.3.100.1500.0179.72
4.3.90.1500.0179.72
4.3.80.1300.0209.72
4.3.70.1300.0179.72
4.3.60.1470.0209.72
4.3.50.1270.0179.72
4.3.40.1430.0239.72
4.3.30.0730.0209.72
4.3.20.0830.0279.72
4.3.10.0770.0239.72
4.3.00.0870.0239.72

preferences:
37.91 ms | 401 KiB | 5 Q