3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tests = [ "hello", "hello:me", "hello::me", "::me", "hello::hello::me", ]; foreach ($tests as $test) { preg_match_all($test, '/([^:]+)::(.+)/', $matches); print_r($matches); echo PHP_EOL; }

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.0030.01416.63
8.3.50.0170.00321.98
8.3.40.0060.00918.50
8.3.30.0120.00318.54
8.3.20.0080.00020.22
8.3.10.0040.00423.61
8.3.00.0060.00319.26
8.2.180.0150.00318.54
8.2.170.0100.00322.96
8.2.160.0100.00320.24
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0030.00617.63
8.2.110.0040.00822.43
8.2.100.0110.00017.93
8.2.90.0020.00519.09
8.2.80.0040.00417.97
8.2.70.0080.00017.50
8.2.60.0060.00317.93
8.2.50.0080.00018.07
8.2.40.0080.00019.39
8.2.30.0050.00220.52
8.2.20.0040.00417.65
8.2.10.0040.00418.00
8.2.00.0000.01017.96
8.1.280.0140.00325.92
8.1.270.0060.00323.96
8.1.260.0000.00726.35
8.1.250.0140.00028.09
8.1.240.0060.00320.75
8.1.230.0080.00817.55
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0030.00517.22
8.1.180.0040.00418.10
8.1.170.0060.00318.98
8.1.160.0030.00521.96
8.1.150.0080.00018.89
8.1.140.0000.00819.52
8.1.130.0050.00217.57
8.1.120.0040.00417.51
8.1.110.0050.00217.44
8.1.100.0040.00417.45
8.1.90.0050.00217.45
8.1.80.0040.00417.47
8.1.70.0030.00317.42
8.1.60.0030.00617.45
8.1.50.0000.00917.39
8.1.40.0000.00817.47
8.1.30.0050.00317.51
8.1.20.0000.00817.51
8.1.10.0000.00717.50
8.1.00.0000.00817.32
8.0.300.0000.00718.77
8.0.290.0060.00316.63
8.0.280.0000.00818.35
8.0.270.0030.00317.23
8.0.260.0000.00617.21
8.0.250.0040.00416.89
8.0.240.0000.00816.96
8.0.230.0030.00316.94
8.0.220.0040.00416.95
8.0.210.0040.00416.84
8.0.200.0000.00616.97
8.0.190.0050.00317.05
8.0.180.0080.00016.92
8.0.170.0000.00816.90
8.0.160.0070.00016.92
8.0.150.0000.00716.79
8.0.140.0050.00316.79
8.0.130.0030.00313.41
8.0.120.0040.00416.90
8.0.110.0060.00316.88
8.0.100.0040.00416.74
8.0.90.0000.00716.84
8.0.80.0070.01016.85
8.0.70.0000.00816.81
8.0.60.0070.00016.93
8.0.50.0000.00716.84
8.0.30.0080.00817.04
8.0.20.0060.01317.40
8.0.10.0040.00416.95
8.0.00.0100.00716.80
7.4.330.0050.00015.10
7.4.320.0030.00316.58
7.4.300.0030.00316.47
7.4.290.0020.00516.44
7.4.280.0050.00316.48
7.4.270.0000.00716.50
7.4.260.0030.00316.41
7.4.250.0050.00216.54
7.4.240.0040.00316.48
7.4.230.0070.00016.32
7.4.220.0100.01616.35
7.4.210.0110.00616.58
7.4.200.0040.00416.59
7.4.160.0160.00016.38
7.4.150.0120.00617.40
7.4.140.0110.00717.86
7.4.130.0120.00516.49
7.4.120.0110.01116.45
7.4.110.0070.01116.55
7.4.100.0090.01316.63
7.4.90.0090.01216.44
7.4.80.0030.01319.39
7.4.70.0030.01316.63
7.4.60.0090.00916.49
7.4.50.0000.00816.34
7.4.40.0180.00016.39
7.4.30.0120.00616.40
7.4.00.0070.00714.86
7.3.330.0000.00513.16
7.3.320.0030.00313.16
7.3.310.0040.00416.36
7.3.300.0080.00016.22
7.3.290.0000.00716.28
7.3.280.0110.00916.36
7.3.270.0110.00517.40
7.3.260.0070.01616.36
7.3.250.0100.00816.34
7.3.240.0130.00816.47
7.3.230.0080.00816.39
7.3.210.0160.00016.33
7.3.200.0130.00316.42
7.3.190.0180.00516.36
7.3.180.0100.00616.62
7.3.170.0090.00616.39
7.3.160.0110.01116.45
7.2.330.0070.01316.85
7.2.320.0150.00616.65
7.2.310.0030.01416.61
7.2.300.0100.01016.89
7.2.290.0070.01116.55
7.2.00.0110.00719.48
7.1.100.0040.00718.36
7.1.70.0040.00417.07
7.1.60.0040.01819.43
7.1.50.0000.01517.17
7.1.00.0070.07322.55
7.0.200.0040.00416.83
7.0.60.0100.08320.01
7.0.50.0070.04017.88
7.0.40.0000.04720.40
7.0.30.0370.04320.14
7.0.20.0270.03320.10
7.0.10.0170.04020.07
7.0.00.0100.08320.23
5.6.280.0030.03720.78
5.6.210.0030.07020.53
5.6.200.0030.05718.15
5.6.190.0100.06320.77
5.6.180.0070.06320.52
5.6.170.0400.07320.44
5.6.160.0030.09020.52
5.6.150.0030.04018.27
5.6.140.0130.06718.11
5.6.130.0070.08018.18
5.6.120.0030.06320.89
5.6.110.0100.08320.99
5.6.100.0100.07021.00
5.6.90.0030.08320.98
5.6.80.0100.07320.53
5.6.70.0230.07320.47
5.5.350.0030.07720.43
5.5.340.0070.07317.95
5.5.330.0070.07720.40
5.5.320.0000.04320.38
5.5.310.0200.08320.32
5.5.300.0070.04317.97
5.5.290.0030.04317.97
5.5.280.0070.08020.87
5.5.270.0100.07720.67
5.5.260.0270.07020.95
5.5.250.0100.07720.68
5.5.240.0100.07720.25
5.4.450.0700.05019.57
5.4.440.0630.05319.63
5.4.430.0700.06719.44
5.4.420.0700.06019.44
5.4.410.0730.06019.47
5.4.400.0900.06318.96
5.4.390.0970.07319.27
5.4.380.0930.04719.12
5.4.370.0670.05019.29
5.4.360.0730.06318.84
5.4.350.0800.07018.96
5.4.340.0700.08019.12
5.4.320.0700.07018.86
5.4.310.0970.06019.27
5.4.300.0730.05319.22
5.4.290.0770.06018.83
5.4.280.0770.05719.13
5.4.270.0770.05719.12
5.4.260.0830.04719.25
5.4.250.0830.04718.93
5.4.240.0800.05019.23
5.4.230.0770.05019.28
5.4.220.0730.06019.27
5.4.210.0670.04719.30
5.4.200.0770.05319.29
5.4.190.0830.05019.11
5.4.180.0700.05719.23
5.4.170.0830.05019.23
5.4.160.0770.05019.20
5.4.150.0870.06018.82
5.4.140.0870.05016.51
5.4.130.1000.05316.55
5.4.120.0700.05316.30
5.4.110.0830.05716.60
5.4.100.0800.04716.63
5.4.90.0730.05016.51
5.4.80.0730.05316.60
5.4.70.0770.05016.23
5.4.60.1000.07016.55
5.4.50.0630.04716.16
5.4.40.0700.04016.61
5.4.30.0600.04716.54
5.4.20.0700.05716.40
5.4.10.0800.04716.60
5.4.00.0930.03315.88

preferences:
45.45 ms | 401 KiB | 5 Q