3v4l.org

run code in 300+ PHP versions simultaneously
<?php $keywords = "val"; preg_match_all('/\w+(?=;|$)/', $keywords, $matches); print_r($matches[0]); $keywords = "val;"; preg_match_all('/\w+(?=;|$)/', $keywords, $matches); print_r($matches[0]); $keywords = "val1; val2;"; preg_match_all('/\w+(?=;|$)/', $keywords, $matches); print_r($matches[0]); $keywords = "val1; val2"; preg_match_all('/\w+(?=;|$)/', $keywords, $matches); print_r($matches[0]);

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.4.130.0100.00118.12
8.4.120.0110.00822.52
8.4.110.0040.00519.01
8.4.100.0120.00918.11
8.4.90.0130.00717.89
8.4.80.0150.00618.21
8.4.70.0090.00718.04
8.4.60.0110.01020.66
8.4.50.0150.00618.57
8.4.40.0110.00619.75
8.4.30.0160.00322.56
8.4.20.0100.01020.31
8.4.10.0060.00317.75
8.3.260.0100.01216.42
8.3.250.0120.00618.75
8.3.240.0120.00916.82
8.3.230.0100.00916.61
8.3.220.0090.00916.98
8.3.210.0120.00616.60
8.3.200.0040.00516.44
8.3.190.0140.00518.70
8.3.180.0050.00217.13
8.3.170.0070.01118.82
8.3.160.0100.00716.53
8.3.150.0060.00317.42
8.3.140.0130.00616.49
8.3.130.0030.00716.86
8.3.120.0090.00020.80
8.3.110.0100.01019.97
8.3.100.0050.00318.78
8.3.90.0110.00416.75
8.3.80.0060.00318.55
8.3.70.0070.00718.43
8.3.60.0100.00718.43
8.3.50.0090.00418.29
8.3.40.0120.00318.93
8.3.30.0110.00418.82
8.3.20.0040.00421.95
8.3.10.0070.00323.66
8.3.00.0060.00320.75
8.2.290.0110.00820.72
8.2.280.0080.01118.69
8.2.270.0090.00917.02
8.2.260.0140.00016.88
8.2.250.0050.00316.87
8.2.240.0030.00616.83
8.2.230.0080.00020.94
8.2.220.0040.00424.06
8.2.210.0150.00326.77
8.2.200.0060.00320.29
8.2.190.0140.00016.75
8.2.180.0130.00618.54
8.2.170.0100.01022.96
8.2.160.0090.00622.27
8.2.150.0060.00324.18
8.2.140.0070.00024.66
8.2.130.0070.00026.16
8.2.120.0000.00821.25
8.2.110.0100.00622.25
8.2.100.0070.00417.84
8.2.90.0040.00417.88
8.2.80.0000.00818.98
8.2.70.0080.00017.63
8.2.60.0050.00317.88
8.2.50.0050.00318.10
8.2.40.0000.01219.48
8.2.30.0000.00719.25
8.2.20.0070.00018.16
8.2.10.0000.00719.12
8.2.00.0070.00019.14
8.1.330.0110.00918.50
8.1.320.0110.00820.14
8.1.310.0040.00816.85
8.1.300.0030.00619.87
8.1.290.0090.00018.88
8.1.280.0060.01025.92
8.1.270.0090.00022.23
8.1.260.0070.00726.35
8.1.250.0100.00328.09
8.1.240.0080.00323.65
8.1.230.0110.00020.97
8.1.220.0000.00818.55
8.1.210.0030.00518.77
8.1.200.0080.00017.35
8.1.190.0030.00517.41
8.1.180.0030.00518.10
8.1.170.0080.00020.80
8.1.160.0000.00718.96
8.1.150.0040.00418.77
8.1.140.0030.00319.05
8.1.130.0030.00320.12
8.1.120.0000.00817.57
8.1.110.0040.00417.39
8.1.100.0030.00517.39
8.1.90.0000.00817.57
8.1.80.0040.00417.47
8.1.70.0030.00317.57
8.1.60.0030.00517.68
8.1.50.0090.00017.57
8.1.40.0000.00817.64
8.1.30.0040.00417.73
8.1.20.0000.00817.73
8.1.10.0000.00817.64
8.1.00.0050.00217.71
8.0.300.0050.00318.77
8.0.290.0000.00816.75
8.0.280.0050.00218.42
8.0.270.0000.00716.86
8.0.260.0050.00220.06
8.0.250.0000.00716.95
8.0.240.0040.00417.04
8.0.230.0000.00817.07
8.0.220.0030.00316.99
8.0.210.0070.00016.92
8.0.200.0000.00717.11
8.0.190.0000.00716.94
8.0.180.0040.00417.02
8.0.170.0040.00416.90
8.0.160.0000.00716.95
8.0.150.0070.00016.92
8.0.140.0000.00816.94
8.0.130.0030.00313.30
8.0.120.0040.00416.95
8.0.110.0080.00016.98
8.0.100.0040.00416.99
8.0.90.0030.00616.81
8.0.80.0000.01516.92
8.0.70.0070.00017.02
8.0.60.0000.00716.98
8.0.50.0030.00616.88
8.0.30.0090.00616.91
8.0.20.0090.01017.20
8.0.10.0020.00517.13
8.0.00.0120.00617.11
7.4.330.0020.00215.55
7.4.320.0030.00316.65
7.4.300.0070.00216.66
7.4.290.0000.00716.74
7.4.280.0040.00416.80
7.4.270.0030.00316.66
7.4.260.0050.00013.37
7.4.250.0000.00716.65
7.4.240.0000.00816.73
7.4.230.0000.00716.80
7.4.220.0020.00516.84
7.4.210.0050.01316.73
7.4.200.0000.00716.77
7.4.130.0060.01116.70
7.4.120.0080.00816.54
7.4.110.0070.01016.65
7.4.100.0090.01616.68
7.4.90.0070.01016.77
7.4.80.0060.01119.39
7.4.70.0100.00716.63
7.4.60.0150.00316.82
7.4.50.0070.01016.65
7.4.40.0030.01416.70
7.4.00.0060.00915.15
7.3.330.0030.00616.42
7.3.320.0030.00313.16
7.3.310.0030.00316.34
7.3.300.0000.00716.40
7.3.290.0030.00316.27
7.3.280.0090.01216.36
7.3.260.0100.01016.57
7.3.240.0120.00516.55
7.3.230.0060.01216.50
7.3.210.0100.00716.64
7.3.200.0100.00716.37
7.3.190.0090.00616.37
7.3.180.0140.00316.44
7.3.170.0110.00816.38
7.3.160.0110.00516.43
7.3.100.0040.00214.88
7.3.90.0090.01214.82
7.3.80.0130.00615.03
7.3.70.0070.01414.99
7.3.60.0020.01914.95
7.3.50.0070.01314.86
7.3.40.0070.01414.75
7.3.30.0140.00614.77
7.3.20.0130.00914.71
7.3.10.0040.01214.82
7.3.00.0080.00814.73
7.2.330.0160.00316.60
7.2.320.0100.00716.67
7.2.310.0110.00716.62
7.2.300.0100.01316.45
7.2.290.0080.00916.71
7.2.230.0150.00615.26
7.2.220.0080.01215.14
7.2.210.0050.01615.09
7.2.200.0140.00614.89
7.2.190.0030.01814.90
7.2.180.0060.01515.08
7.2.170.0170.00815.08
7.2.160.0050.01515.13
7.2.150.0090.00914.80
7.2.140.0120.01215.27
7.2.130.0090.01315.14
7.2.120.0030.01315.09
7.2.110.0090.01215.02
7.2.100.0170.00614.88
7.2.90.0140.00915.10
7.2.80.0160.01315.11
7.2.70.0060.01515.28
7.2.60.0180.00315.17
7.2.50.0090.01415.17
7.2.40.0110.01114.93
7.2.30.0130.00915.15
7.2.20.0130.00915.07
7.2.10.0090.01215.16
7.2.00.0120.00915.01
7.1.320.0110.00814.25
7.1.310.0120.00714.18
7.1.300.0030.01714.23
7.1.290.0160.01314.07
7.1.280.0130.00813.89
7.1.270.0140.00713.99
7.1.260.0100.00714.10
7.1.250.0060.01314.14

preferences:
29.34 ms | 403 KiB | 5 Q