3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '%^ ((?=x))? ((?=y))? (\w) $%mx'; $str = 'x y z'; preg_match_all($re, $str, $matches, PREG_SET_ORDER | PREG_UNMATCHED_AS_NULL, 0); // Print the entire match result 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.0040.01116.63
8.3.50.0140.00416.66
8.3.40.0110.00718.56
8.3.30.0110.00418.92
8.3.20.0040.00420.21
8.3.10.0040.00421.92
8.3.00.0050.00323.61
8.2.180.0040.01118.43
8.2.170.0000.01522.96
8.2.160.0120.00420.35
8.2.150.0050.00324.18
8.2.140.0000.00724.66
8.2.130.0040.00421.14
8.2.120.0080.00026.35
8.2.110.0110.00022.41
8.2.100.0130.00017.91
8.2.90.0050.00318.03
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0000.00817.63
8.2.50.0000.00817.63
8.2.40.0040.00419.45
8.2.30.0060.00319.31
8.2.20.0040.00418.02
8.2.10.0000.00818.02
8.2.00.0030.00618.05
8.1.280.0040.01125.92
8.1.270.0040.00422.06
8.1.260.0040.01426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.38
8.1.230.0080.00420.85
8.1.220.0030.00517.74
8.1.210.0000.00818.92
8.1.200.0060.00317.35
8.1.190.0040.00417.25
8.1.180.0040.00418.10
8.1.170.0030.00617.82
8.1.160.0070.00018.69
8.1.150.0000.00720.16
8.1.140.0050.00219.57
8.1.130.0000.00718.87
8.1.120.0040.00417.44
8.1.110.0060.00617.43
8.1.100.0050.00317.43
8.1.90.0040.00417.48
8.1.80.0040.00417.43
8.1.70.0040.00417.56
8.1.60.0040.00417.56
8.1.50.0000.00817.51
8.1.40.0000.00817.67
8.1.30.0100.00017.57
8.1.20.0040.00417.68
8.1.10.0070.00017.56
8.1.00.0030.00517.52
8.0.300.0040.00419.96
8.0.290.0000.00816.58
8.0.280.0040.00418.46
8.0.270.0030.00317.21
8.0.260.0000.00718.82
8.0.250.0030.00517.06
8.0.240.0000.00717.05
8.0.230.0040.00417.00
8.0.220.0000.00716.84
8.0.210.0020.00517.02
8.0.200.0030.00317.09
8.0.190.0040.00416.99
8.0.180.0000.00717.03
8.0.170.0070.00017.04
8.0.160.0000.00717.05
8.0.150.0000.00716.95
8.0.140.0050.00316.94
8.0.130.0070.00013.48
8.0.120.0040.00416.96
8.0.110.0040.00416.93
8.0.100.0050.00216.75
8.0.90.0080.00016.88
8.0.80.0120.00617.00
8.0.70.0000.00816.93
8.0.60.0040.00416.88
8.0.50.0050.00216.77
8.0.30.0090.00917.22
8.0.20.0120.00917.40
8.0.10.0040.00416.98
8.0.00.0060.01216.93
7.4.330.0020.00215.55
7.4.320.0000.00716.70
7.4.300.0030.00316.76
7.4.290.0050.00216.53
7.4.280.0000.00716.53
7.4.270.0000.00716.77
7.4.260.0030.00316.74
7.4.250.0040.00416.64
7.4.240.0000.00716.62
7.4.230.0050.00216.83
7.4.220.0120.00616.68
7.4.210.0040.01016.77
7.4.200.0040.00216.48
7.4.160.0130.00316.53
7.4.150.0030.01917.40
7.4.140.0110.00817.86
7.4.130.0160.00316.48
7.4.120.0120.01016.56
7.4.110.0150.00916.55
7.4.100.0150.00416.53
7.4.90.0060.01116.47
7.4.80.0190.00319.39
7.4.70.0100.00716.57
7.4.60.0140.00716.39
7.4.50.0030.01316.62
7.4.40.0080.01116.53
7.4.30.0100.00616.68
7.4.10.0000.01715.18
7.4.00.0080.01014.89
7.3.330.0050.00013.02
7.3.320.0000.00513.16
7.3.310.0040.00416.34
7.3.300.0030.00316.18
7.3.290.0030.00316.07
7.3.280.0080.00916.31
7.3.270.0060.01317.40
7.3.260.0130.00416.29
7.3.250.0100.00916.30
7.3.240.0110.00516.40
7.3.230.0060.01116.55
7.3.210.0030.01716.30
7.3.200.0120.00616.59
7.3.190.0100.01016.36
7.3.180.0070.01116.51
7.3.170.0040.01316.41
7.3.160.0120.00916.31
7.3.130.0090.00614.95
7.3.120.0050.01215.08
7.3.110.0020.01614.61
7.3.100.0080.00814.76
7.3.90.0070.00814.67
7.3.80.0040.01114.70
7.3.70.0070.00514.67
7.3.60.0080.01014.83
7.3.50.0080.00814.77
7.3.40.0040.00914.61
7.3.30.0040.00914.93
7.3.20.0090.00416.73
7.3.10.0040.01116.58
7.3.00.0040.01016.74
7.2.330.0070.01116.61
7.2.320.0090.00916.59
7.2.310.0120.00616.66
7.2.300.0060.01816.58
7.2.290.0100.01016.54
7.2.260.0120.00614.99
7.2.250.0080.01015.16
7.2.240.0060.00915.02
7.2.230.0130.00515.08
7.2.220.0090.00814.96
7.2.210.0030.01014.91
7.2.200.0070.00514.96
7.2.190.0110.00515.13
7.2.180.0090.00515.09
7.2.170.0060.00715.20
7.2.160.0060.01014.93
7.2.150.0030.01416.66
7.2.140.0070.01016.80
7.2.130.0070.00516.90
7.2.120.0030.01116.88
7.2.110.0060.01116.93
7.2.100.0070.00416.87
7.2.90.0030.01216.92
7.2.80.0010.00816.93
7.2.70.0060.00817.06
7.2.60.0060.00916.85
7.2.50.0040.00916.76
7.2.40.0080.00516.73
7.2.30.0100.00116.91
7.2.20.0050.00516.90
7.2.10.0060.00616.87
7.2.00.0100.00716.96
7.1.330.0090.00615.78
7.1.320.0060.00615.98
7.1.310.0070.00516.01
7.1.300.0040.01115.96
7.1.290.0050.00715.84
7.1.280.0070.00415.75
7.1.270.0050.01015.96
7.1.260.0110.00315.82
7.1.250.0040.00815.88
7.1.240.0090.00615.93
7.1.230.0030.00915.88
7.1.220.0070.00815.87
7.1.210.0070.00515.81
7.1.200.0070.00615.78
7.1.190.0060.00515.79
7.1.180.0030.01015.89
7.1.170.0020.01115.88
7.1.160.0020.01016.01
7.1.150.0070.00715.91
7.1.140.0100.00215.90
7.1.130.0050.00915.90
7.1.120.0080.00815.79
7.1.110.0030.01015.85
7.1.100.0080.00515.87
7.1.90.0050.00616.74
7.1.80.0060.00716.81
7.1.70.0030.01016.43
7.1.60.0100.00822.20
7.1.50.0100.00922.25
7.1.40.0110.00721.97
7.1.30.0080.01122.20
7.1.20.0120.00922.10
7.1.10.0060.00716.18
7.1.00.0060.00916.25
7.0.330.0020.00615.54
7.0.320.0030.00715.33
7.0.310.0070.00515.27
7.0.300.0020.00815.62
7.0.290.0030.00915.28
7.0.280.0000.00915.61
7.0.270.0050.00815.35
7.0.260.0070.00515.64
7.0.250.0030.00815.59
7.0.240.0000.01215.57
7.0.230.0060.01016.32
7.0.220.0020.00916.45
7.0.210.0030.00915.87
7.0.200.0050.00616.02
7.0.190.0040.00815.87
7.0.180.0040.01115.69
7.0.170.0070.00615.78
7.0.160.0020.01015.67
7.0.150.0050.00715.64
7.0.140.0070.00515.94
7.0.130.0040.00915.97
7.0.120.0080.00415.81
7.0.110.0070.00515.66
7.0.100.0040.00915.82
7.0.90.0040.00815.81
7.0.80.0100.00415.90
7.0.70.0080.00515.73
7.0.60.0020.01115.57
7.0.50.0030.00815.90
7.0.40.0070.00514.55
7.0.30.0070.00614.65
7.0.20.0050.00714.53
7.0.10.0070.00514.50
7.0.00.0080.00514.60
5.6.400.0030.00614.45
5.6.390.0030.01014.28
5.6.380.0000.00914.32
5.6.370.0030.01314.48
5.6.360.0070.01014.63
5.6.350.0060.00914.39
5.6.340.0000.01214.25
5.6.330.0000.01514.64
5.6.320.0030.01014.26
5.6.310.0100.00714.50
5.6.300.0030.01414.25
5.6.290.0100.00614.44
5.6.280.0030.01214.37
5.6.270.0030.01014.14
5.6.260.0100.00314.41
5.6.250.0000.01214.21
5.6.240.0040.01114.32
5.6.230.0060.00914.34
5.6.220.0060.01014.36
5.6.210.0060.00314.14
5.6.200.0080.00314.02
5.6.190.0130.00014.17
5.6.180.0070.01114.39
5.6.170.0060.00914.28
5.6.160.0130.00314.02
5.6.150.0030.00914.35
5.6.140.0080.00814.46
5.6.130.0100.00314.23
5.6.120.0040.01114.42
5.6.110.0060.00614.28
5.6.100.0040.00814.21
5.6.90.0070.00714.58
5.6.80.0030.00614.41
5.6.70.0030.00914.44
5.6.60.0080.00814.11
5.6.50.0030.01014.36
5.6.40.0100.00314.31
5.6.30.0070.00714.28
5.6.20.0110.00314.23
5.6.10.0090.00714.41
5.6.00.0040.00814.20

preferences:
55.98 ms | 400 KiB | 5 Q