3v4l.org

run code in 300+ PHP versions simultaneously
<?php $path = '/a/b/c/d/e.f'; $matches = []; $matches = array_filter(preg_split('/\/|\\\/', $path)); var_dump($matches); echo $matches[count($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.70.0140.00316.75
8.3.60.0100.01018.56
8.3.50.0100.00921.21
8.3.40.0140.00319.05
8.3.30.0060.00820.29
8.3.20.0040.00420.14
8.3.10.0070.00721.17
8.3.00.0040.00422.58
8.2.180.0120.00916.88
8.2.170.0110.00422.96
8.2.160.0130.00020.52
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0000.00926.16
8.2.120.0060.00921.12
8.2.110.0030.00619.14
8.2.100.0080.00417.97
8.2.90.0090.00019.35
8.2.80.0040.00418.16
8.2.70.0040.00417.88
8.2.60.0080.00018.05
8.2.50.0000.00918.07
8.2.40.0060.00318.21
8.2.30.0060.00319.53
8.2.20.0050.00317.92
8.2.10.0040.00417.77
8.2.00.0000.00917.77
8.1.280.0000.01525.92
8.1.270.0000.00923.99
8.1.260.0040.00426.35
8.1.250.0110.00428.09
8.1.240.0090.00023.99
8.1.230.0040.00820.85
8.1.220.0000.00818.77
8.1.210.0000.00818.96
8.1.200.0030.00617.48
8.1.190.0040.00417.53
8.1.180.0040.00418.10
8.1.170.0000.00818.77
8.1.160.0000.00718.79
8.1.150.0000.00818.81
8.1.140.0040.00417.60
8.1.130.0030.00317.91
8.1.120.0070.00017.53
8.1.110.0000.00717.63
8.1.100.0030.00517.64
8.1.90.0000.00817.64
8.1.80.0040.00417.62
8.1.70.0020.00517.59
8.1.60.0000.00917.63
8.1.50.0030.00517.56
8.1.40.0070.00017.55
8.1.30.0000.00717.79
8.1.20.0040.00417.87
8.1.10.0040.00417.59
8.1.00.0030.00617.57
8.0.300.0080.00020.00
8.0.290.0040.00417.03
8.0.280.0080.00018.38
8.0.270.0030.00317.31
8.0.260.0040.00416.96
8.0.250.0000.00717.16
8.0.240.0050.00516.99
8.0.230.0030.00316.92
8.0.220.0030.00316.96
8.0.210.0000.00816.91
8.0.200.0000.00617.00
8.0.190.0050.00317.02
8.0.180.0040.00416.99
8.0.170.0000.00816.95
8.0.160.0000.00717.03
8.0.150.0040.00416.87
8.0.140.0040.00416.90
8.0.130.0000.00513.45
8.0.120.0040.00417.02
8.0.110.0000.00717.08
8.0.100.0000.00816.91
8.0.90.0040.00416.93
8.0.80.0100.00717.09
8.0.70.0000.00716.95
8.0.60.0020.00517.07
8.0.50.0000.00816.99
8.0.30.0140.00617.43
8.0.20.0120.00817.40
8.0.10.0040.00417.00
8.0.00.0080.01017.02
7.4.330.0000.00516.68
7.4.320.0060.00016.72
7.4.300.0000.00616.75
7.4.290.0000.00716.68
7.4.280.0030.00316.78
7.4.270.0030.00316.71
7.4.260.0060.00313.43
7.4.250.0030.00516.76
7.4.240.0040.00416.71
7.4.230.0040.00316.60
7.4.220.0140.00816.80
7.4.210.0050.00816.74
7.4.200.0030.00316.84
7.4.190.0030.00316.96
7.4.160.0060.01216.84
7.4.150.0030.01417.40
7.4.140.0130.01517.86
7.4.130.0060.01316.87
7.4.120.0100.00716.69
7.4.110.0090.01016.58
7.4.100.0080.00816.66
7.4.90.0130.00616.70
7.4.80.0090.00919.39
7.4.70.0060.00916.63
7.4.60.0030.01316.73
7.4.50.0060.00316.70
7.4.40.0040.00722.77
7.4.30.0080.00816.63
7.4.00.0100.00315.15
7.3.330.0000.00513.33
7.3.320.0000.00513.37
7.3.310.0050.00216.37
7.3.300.0070.00016.46
7.3.290.0060.00816.39
7.3.280.0060.00816.43
7.3.270.0130.00717.40
7.3.260.0070.01118.24
7.3.250.0150.00716.65
7.3.240.0240.00016.69
7.3.230.0150.00316.45
7.3.210.0100.00716.40
7.3.200.0080.01119.39
7.3.190.0160.00616.65
7.3.180.0120.00616.74
7.3.170.0080.00816.51
7.3.160.0030.01416.33
7.3.120.0060.00615.16
7.2.330.0110.00716.50
7.2.320.0150.00816.81
7.2.310.0100.00916.90
7.2.300.0090.00916.82
7.2.290.0130.00416.94
7.2.00.0030.01419.32
7.1.100.0040.01118.27
7.1.70.0030.00517.40
7.1.60.0210.00319.17
7.1.50.0260.01035.03
7.1.00.0000.03722.41
7.0.200.0000.00816.60
7.0.140.0070.07322.08
7.0.60.0100.06019.85
7.0.50.0030.06717.89
7.0.40.0000.05020.25
7.0.30.0200.04020.04
7.0.20.0270.08320.14
7.0.10.0270.05320.01
7.0.00.0070.08020.26
5.6.210.0130.06720.60
5.6.200.0000.04718.20
5.6.190.0030.04320.43
5.6.180.0300.07720.41
5.6.170.0070.05020.42
5.6.160.0170.07320.45
5.6.150.0070.08318.19
5.6.140.0000.04018.11
5.6.130.0000.04718.21
5.6.120.0170.06320.95
5.6.110.0100.05321.08
5.6.100.0070.08321.01
5.6.90.0070.08721.05
5.6.80.0100.07020.40
5.6.70.0370.06320.52
5.5.350.0270.07320.39
5.5.340.0000.04317.91
5.5.330.0030.04320.40
5.5.320.3770.04720.28
5.5.310.0370.03720.18
5.5.300.0170.02718.02
5.5.290.0100.08017.95
5.5.280.0030.05320.87
5.5.270.0130.07720.88
5.5.260.0000.04320.64
5.5.250.0100.06720.68
5.5.240.0070.08320.26
5.4.450.0200.04319.21
5.4.440.0230.07719.56
5.4.430.0200.04019.56
5.4.420.0300.07019.09
5.4.410.0230.03319.36
5.4.400.0200.06319.25
5.4.390.0270.04719.13
5.4.380.0200.08018.80
5.4.370.0300.04019.13
5.4.360.0230.04719.04
5.4.350.0270.04719.09
5.4.340.0200.07319.13
5.4.320.0270.04019.06
5.4.310.0230.05319.09
5.4.300.0270.07019.16
5.4.290.0330.04318.78
5.4.280.0270.07019.13
5.4.270.0270.05319.13
5.4.260.0170.04019.13
5.4.250.0130.06319.23
5.4.240.0270.06019.12
5.4.230.0330.07018.78
5.4.220.0270.05018.92
5.4.210.0300.05719.15
5.4.200.0300.07018.88
5.4.190.0230.05019.12
5.4.180.0300.07018.87
5.4.170.0130.05019.19
5.4.160.0330.06719.14
5.4.150.0230.06719.22
5.4.140.0200.05016.38
5.4.130.0270.06716.33
5.4.120.0230.06716.25
5.4.110.0300.03716.43
5.4.100.0230.06716.21
5.4.90.0230.03716.43
5.4.80.0200.03316.23
5.4.70.0330.03716.44
5.4.60.0230.06716.18
5.4.50.0330.06016.46
5.4.40.0270.06316.36
5.4.30.0230.05316.27
5.4.20.0170.03716.45
5.4.10.0170.05316.16
5.4.00.0300.06015.76
5.3.290.0270.07014.70
5.3.280.0370.05314.55
5.3.270.0200.05014.54
5.3.260.0270.07314.53
5.3.250.0200.06714.57
5.3.240.0200.07714.44
5.3.230.0330.06314.46
5.3.220.0200.04314.42
5.3.210.0270.04714.52
5.3.200.0300.06314.43
5.3.190.0230.05314.62
5.3.180.0170.05314.40
5.3.170.0400.05714.44
5.3.160.0230.07014.41
5.3.150.0270.06014.65
5.3.140.0230.05014.50
5.3.130.0130.04714.42
5.3.120.0100.04314.50
5.3.110.0200.04714.53
5.3.100.0300.06314.04
5.3.90.0230.07314.05
5.3.80.0130.05713.96
5.3.70.0170.05014.10
5.3.60.0100.04313.98
5.3.50.0130.04313.78
5.3.40.0170.04313.93
5.3.30.0300.02313.85
5.3.20.0170.04713.72
5.3.10.0230.05313.69
5.3.00.0300.03313.61
5.2.170.0130.03713.00
5.2.160.0200.03713.00
5.2.150.0170.05013.00
5.2.140.0200.05713.00
5.2.130.0130.04313.00
5.2.120.0200.03713.00
5.2.110.0200.04313.00
5.2.100.0200.06013.00
5.2.90.0200.04713.00
5.2.80.0170.05713.00
5.2.70.0170.05713.00
5.2.60.0130.04713.00
5.2.50.0200.05313.00
5.2.40.0170.04713.00
5.2.30.0170.05313.00
5.2.20.0100.04713.00
5.2.10.0270.02713.00
5.2.00.0130.06313.00
5.1.60.0130.03713.00
5.1.50.0130.04713.00
5.1.40.0100.02713.00
5.1.30.0200.02313.00
5.1.20.0230.02313.00
5.1.10.0100.02713.00
5.1.00.0130.02713.00
5.0.50.0030.02013.00
5.0.40.0070.01713.00
5.0.30.0070.02713.00
5.0.20.0070.01713.00
5.0.10.0100.01713.00
5.0.00.0030.03313.00
4.4.90.0100.03313.00
4.4.80.0170.02713.00
4.4.70.0100.02013.00
4.4.60.0100.02313.00
4.4.50.0130.02013.00
4.4.40.0100.02713.00
4.4.30.0100.01713.00
4.4.20.0030.02013.00
4.4.10.0030.01713.00
4.4.00.0030.02713.00
4.3.110.0030.02013.00
4.3.100.0070.01313.00
4.3.90.0070.01313.00
4.3.80.0000.02713.00
4.3.70.0100.02313.00
4.3.60.0070.03013.00
4.3.50.0070.02013.00
4.3.40.0030.04013.00
4.3.30.0000.01713.00
4.3.20.0000.01713.00
4.3.10.0070.01313.00
4.3.00.0000.01713.00

preferences:
45.59 ms | 401 KiB | 5 Q