3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace X; $iterator = new \RegexIterator( new \ArrayIterator( ['A.phpt', 'B.phpt', 'C.phpt'] ) , '/\.phpt$/' , \RegexIterator::MATCH ) ; foreach ($iterator as $foo) { var_dump($foo); preg_replace('/\.phpt$/', '', ''); } echo "Done", 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.0090.00918.68
8.3.50.0130.00822.04
8.3.40.0060.00918.77
8.3.30.0110.00418.97
8.3.20.0080.00020.39
8.3.10.0080.00023.48
8.3.00.0060.00319.38
8.2.180.0100.01018.66
8.2.170.0060.00922.96
8.2.160.0090.00619.30
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0030.00717.50
8.2.120.0040.00426.35
8.2.110.0100.00019.39
8.2.100.0060.00617.97
8.2.90.0030.00520.20
8.2.80.0030.00619.11
8.2.70.0000.00817.88
8.2.60.0040.00417.75
8.2.50.0060.00317.88
8.2.40.0100.00319.23
8.2.30.0000.00720.53
8.2.20.0000.00717.77
8.2.10.0080.00017.96
8.2.00.0040.00417.96
8.1.280.0070.01425.92
8.1.270.0030.00622.14
8.1.260.0070.00028.09
8.1.250.0080.00028.09
8.1.240.0060.00322.14
8.1.230.0100.00720.78
8.1.220.0040.00417.74
8.1.210.0060.00318.85
8.1.200.0090.00017.35
8.1.190.0040.00417.35
8.1.180.0060.00318.10
8.1.170.0040.00718.69
8.1.160.0050.00322.08
8.1.150.0080.00018.86
8.1.140.0000.00819.54
8.1.130.0040.00417.73
8.1.120.0000.00717.61
8.1.110.0040.00417.63
8.1.100.0080.00017.58
8.1.90.0040.00417.51
8.1.80.0030.00617.60
8.1.70.0070.00017.61
8.1.60.0030.00617.63
8.1.50.0000.00817.64
8.1.40.0030.00617.70
8.1.30.0040.00417.85
8.1.20.0030.00517.76
8.1.10.0040.00417.66
8.1.00.0000.00817.73
8.0.300.0000.00720.03
8.0.290.0060.00316.88
8.0.280.0070.00018.41
8.0.270.0070.00017.20
8.0.260.0030.00317.19
8.0.250.0050.00216.98
8.0.240.0040.00417.00
8.0.230.0030.00516.99
8.0.220.0030.00317.01
8.0.210.0040.00417.05
8.0.200.0030.00316.99
8.0.190.0040.00416.98
8.0.180.0040.00317.05
8.0.170.0040.00417.12
8.0.160.0020.00517.05
8.0.150.0030.00317.05
8.0.140.0090.00017.04
8.0.130.0000.00513.49
8.0.120.0000.00816.90
8.0.110.0080.00017.01
8.0.100.0030.00316.86
8.0.90.0030.00516.93
8.0.80.0100.00617.00
8.0.70.0040.00417.04
8.0.60.0000.00717.00
8.0.50.0040.00416.94
8.0.30.0070.01317.41
8.0.20.0070.01217.40
8.0.10.0000.00717.25
8.0.00.0090.00916.94
7.4.330.0020.00215.18
7.4.320.0000.00716.79
7.4.300.0030.00316.73
7.4.290.0040.00416.71
7.4.280.0040.00416.64
7.4.270.0040.00716.69
7.4.260.0070.00016.70
7.4.250.0050.00316.78
7.4.240.0020.00616.79
7.4.230.0030.00316.83
7.4.220.0100.00716.84
7.4.210.0090.00816.84
7.4.200.0040.00416.85
7.4.160.0030.01316.65
7.4.150.0110.00517.40
7.4.140.0140.00717.86
7.4.130.0120.00616.74
7.4.120.0120.00516.64
7.4.110.0120.00616.56
7.4.100.0130.00316.70
7.4.90.0100.00816.83
7.4.80.0150.00319.39
7.4.70.0070.01016.82
7.4.60.0140.00616.66
7.4.50.0000.00816.57
7.4.40.0100.00616.61
7.4.30.0090.00916.78
7.4.00.0100.00715.37
7.3.330.0060.00013.23
7.3.320.0000.00513.26
7.3.310.0000.00716.48
7.3.300.0050.00216.32
7.3.290.0040.00416.33
7.3.280.0070.00916.43
7.3.270.0030.01517.40
7.3.260.0100.00716.87
7.3.250.0100.00816.60
7.3.240.0050.01216.40
7.3.230.0070.01016.76
7.3.210.0150.00316.71
7.3.200.0060.00916.46
7.3.190.0160.00016.67
7.3.180.0100.01016.92
7.3.170.0120.01216.54
7.3.160.0100.00616.64
7.3.120.0120.00615.02
7.3.110.0070.01114.99
7.3.100.0040.01515.26
7.3.90.0070.01015.12
7.3.80.0130.00715.19
7.3.70.0000.01815.24
7.3.60.0030.00614.96
7.3.50.0030.00915.06
7.3.40.0060.00914.87
7.3.30.0130.00314.96
7.3.20.0080.00016.86
7.3.10.0060.00916.50
7.3.00.0030.01416.90
7.2.330.0120.00616.79
7.2.320.0100.01316.96
7.2.310.0030.01316.77
7.2.300.0080.00816.80
7.2.290.0040.01516.86
7.2.250.0100.00615.34
7.2.240.0030.01615.34
7.2.230.0120.00015.25
7.2.220.0100.00615.32
7.2.210.0030.01615.24
7.2.200.0090.00615.35
7.2.190.0030.01415.36
7.2.180.0060.00615.52
7.2.170.0040.01215.12
7.2.60.0070.00717.18
7.2.00.0210.01119.70
7.1.330.0030.01015.93
7.1.320.0070.01015.77
7.1.310.0040.01115.59
7.1.300.0000.01515.88
7.1.290.0030.00616.14
7.1.280.0060.00315.91
7.1.270.0000.01116.13
7.1.260.0000.01416.14
7.1.200.0070.00415.72
7.1.100.0060.00618.41
7.1.70.0000.00917.44
7.1.60.0090.01619.48
7.1.50.0130.01017.07
7.1.00.0070.07322.47
7.0.200.0640.00414.51
7.0.60.0070.05320.04
7.0.50.0100.03317.91
7.0.40.0030.06720.11
7.0.30.0330.08320.32
7.0.20.0400.06720.22
7.0.10.0100.04020.21
7.0.00.0070.08320.02
5.6.280.0030.03021.06
5.6.210.0130.07020.52
5.6.200.0030.08318.21
5.6.190.0100.08720.60
5.6.180.0170.05320.43
5.6.170.0200.08020.31
5.6.160.0100.05020.46
5.6.150.0000.07018.07
5.6.140.0000.04718.14
5.6.130.0000.04318.21
5.6.120.0130.06721.11
5.6.110.0070.04021.05
5.6.100.0070.05721.12
5.6.90.0070.09020.98
5.6.80.0030.07020.38
5.5.350.4230.04020.44
5.5.340.0070.08017.88
5.5.330.0130.07720.21
5.5.320.0200.04020.17
5.5.310.0230.08020.50
5.5.300.0070.08017.97
5.5.290.0070.08717.97
5.5.280.0070.06020.96
5.5.270.0030.05020.76
5.5.260.0100.08320.84
5.5.250.0030.08720.55
5.5.240.0230.08320.37

preferences:
56.16 ms | 401 KiB | 5 Q