3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = [ 'this/is/the/path/to/my/fileA.php', 'this/could/also/be/the/path/to/my/fileB.php', 'another/example/of/a/long/address/which/is/a/path/to/my/fileC.php', ]; var_export( preg_replace( '~.*((?:/[^/]*){4}$)~', '$1', $strings ) );

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.5.00.0040.01722.94
8.4.150.0020.00114.05
8.4.140.0200.00917.81
8.4.130.0160.00519.26
8.4.120.0070.00324.09
8.4.110.0140.00720.68
8.4.100.0150.00617.98
8.4.90.0140.00722.47
8.4.80.0050.00718.04
8.4.70.0090.00318.55
8.4.60.0080.01118.87
8.4.50.0050.00418.03
8.4.40.0030.01620.75
8.4.30.0120.00622.04
8.4.20.0080.01217.87
8.4.10.0160.00323.87
8.3.280.0090.01018.76
8.3.270.0070.01216.50
8.3.260.0090.00716.86
8.3.250.0130.00317.07
8.3.240.0050.00316.99
8.3.230.0120.00916.53
8.3.220.0130.00816.86
8.3.210.0080.00718.52
8.3.200.0050.00316.57
8.3.190.0090.00516.65
8.3.180.0160.00216.60
8.3.170.0120.00618.86
8.3.160.0200.00018.31
8.3.150.0110.00717.00
8.3.140.0120.00416.44
8.3.130.0040.01118.23
8.3.120.0040.00418.75
8.3.110.0080.00818.58
8.3.100.0080.00016.88
8.3.90.0000.01526.77
8.3.80.0090.00018.17
8.3.70.0040.01118.30
8.3.60.0180.00418.25
8.3.50.0090.01218.55
8.3.40.0100.00320.47
8.3.30.0040.01120.70
8.3.20.0070.00024.18
8.3.10.0000.00824.66
8.3.00.0040.00426.16
8.2.290.0130.00620.43
8.2.280.0060.00318.51
8.2.270.0120.00917.34
8.2.260.0150.00018.73
8.2.250.0060.00316.79
8.2.240.0030.00617.29
8.2.230.0060.00320.94
8.2.220.0050.00524.06
8.2.210.0090.00626.77
8.2.200.0090.00018.54
8.2.190.0080.00816.75
8.2.180.0120.00618.41
8.2.170.0040.01122.96
8.2.160.0030.01322.96
8.2.150.0000.00825.66
8.2.140.0000.00824.66
8.2.130.0050.00326.16
8.2.120.0040.00419.61
8.2.110.0150.00420.89
8.2.100.0120.00017.79
8.2.90.0050.00317.63
8.2.80.0040.00417.97
8.2.70.0030.00617.75
8.2.60.0190.00017.38
8.2.50.0120.00617.36
8.2.40.0100.00517.38
8.2.30.0110.00417.38
8.2.20.0110.00717.60
8.2.10.0140.00317.75
8.2.00.0110.00517.50
8.1.330.0120.00821.96
8.1.320.0090.00917.86
8.1.310.0050.00316.63
8.1.300.0100.00716.40
8.1.290.0030.00630.84
8.1.280.0100.00725.92
8.1.270.0040.00423.77
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00019.11
8.1.230.0000.01217.83
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0120.00616.88
8.1.180.0140.00317.00
8.1.170.0140.00217.38
8.1.160.0080.00817.13
8.1.150.0170.00017.25
8.1.140.0120.00417.25
8.1.130.0090.00617.34
8.1.120.0170.00017.25
8.1.110.0080.00817.22
8.1.100.0100.00617.25
8.1.90.0060.01217.50
8.1.80.0120.00517.38
8.1.70.0110.00617.38
8.1.60.0130.00417.49
8.1.50.0140.00317.13
8.1.40.0130.00517.63
8.1.30.0160.00217.50
8.1.20.0170.00017.63
8.1.10.0140.00317.25
8.1.00.0190.00017.25
8.0.300.0050.00318.77
8.0.290.0080.00016.75
8.0.280.0070.00716.63
8.0.270.0120.00916.52
8.0.260.0080.00816.63
8.0.250.0100.00516.52
8.0.240.0130.00316.75
8.0.230.0130.00316.52
8.0.220.0070.00916.75
8.0.210.0150.00016.63
8.0.200.0070.01116.88
8.0.190.0130.00416.88
8.0.180.0080.01216.60
8.0.170.0130.00316.63
8.0.160.0180.00016.59
8.0.150.0130.00316.75
8.0.140.0170.00016.74
8.0.130.0150.00216.63
8.0.120.0140.00316.60
8.0.110.0110.00516.62
8.0.100.0120.00416.52
8.0.90.0110.00516.52
8.0.80.0120.00416.63
8.0.70.0130.00316.74
8.0.60.0130.00016.93
8.0.50.0040.01216.73
8.0.30.0130.00416.52
8.0.20.0120.00416.75
8.0.10.0130.00316.73

preferences:
36.65 ms | 403 KiB | 5 Q