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}$~', '', $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.0140.01022.84
8.4.150.0030.00014.05
8.4.140.0140.00717.91
8.4.130.0130.00718.15
8.4.120.0100.00920.57
8.4.110.0090.01418.80
8.4.100.0140.00818.13
8.4.90.0130.00820.73
8.4.80.0100.00918.89
8.4.70.0110.00418.93
8.4.60.0120.00918.90
8.4.50.0120.00718.73
8.4.40.0150.00620.52
8.4.30.0140.00722.07
8.4.20.0170.00318.07
8.4.10.0080.00823.92
8.3.280.0070.01318.55
8.3.270.0170.00616.78
8.3.260.0130.00716.33
8.3.250.0120.00718.67
8.3.240.0050.00316.43
8.3.230.0120.00616.58
8.3.220.0090.01018.77
8.3.210.0050.00516.75
8.3.200.0060.00316.76
8.3.190.0080.01117.19
8.3.180.0110.00818.55
8.3.170.0120.00620.83
8.3.160.0130.00618.22
8.3.150.0170.00017.25
8.3.140.0090.00617.08
8.3.130.0130.00718.55
8.3.120.0090.00018.88
8.3.110.0090.00020.94
8.3.100.0050.00524.06
8.3.90.0040.00426.77
8.3.80.0040.00417.97
8.3.70.0140.00718.56
8.3.60.0120.00616.75
8.3.50.0070.01416.48
8.3.40.0040.01120.30
8.3.30.0110.00320.38
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.290.0110.00818.91
8.2.280.0140.00718.45
8.2.270.0090.00917.03
8.2.260.0030.00520.81
8.2.250.0120.00618.65
8.2.240.0090.00017.20
8.2.230.0090.00022.58
8.2.220.0100.01037.54
8.2.210.0000.01526.77
8.2.200.0100.00018.26
8.2.190.0120.00316.75
8.2.180.0190.00318.54
8.2.170.0090.01222.96
8.2.160.0100.00322.96
8.2.150.0030.00525.66
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0050.00319.61
8.2.110.0000.00919.10
8.2.100.0000.01117.97
8.2.90.0040.00417.63
8.2.80.0040.00418.93
8.2.70.0060.00317.75
8.2.60.0140.00417.38
8.2.50.0150.00417.25
8.2.40.0130.00417.38
8.2.30.0140.00417.38
8.2.20.0130.00417.63
8.2.10.0070.01117.62
8.2.00.0130.00317.63
8.1.330.0080.00716.23
8.1.320.0120.00716.22
8.1.310.0120.00616.73
8.1.300.0000.01017.66
8.1.290.0060.00330.84
8.1.280.0130.00925.92
8.1.270.0080.00023.83
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0040.00823.77
8.1.230.0080.00320.86
8.1.220.0040.00418.74
8.1.210.0080.00018.77
8.1.200.0080.00017.36
8.1.190.0100.00717.35
8.1.180.0070.01017.00
8.1.170.0040.01317.47
8.1.160.0070.01017.35
8.1.150.0150.00317.47
8.1.140.0150.00017.10
8.1.130.0140.00417.10
8.1.120.0080.00817.36
8.1.110.0140.00317.25
8.1.100.0140.00317.25
8.1.90.0100.00717.23
8.1.80.0080.00817.38
8.1.70.0160.00017.25
8.1.60.0140.00517.38
8.1.50.0130.00517.13
8.1.40.0130.00417.50
8.1.30.0140.00317.38
8.1.20.0090.00917.38
8.1.10.0120.00517.38
8.1.00.0220.00017.00
8.0.300.0040.00419.95
8.0.290.0080.00016.75
8.0.280.0160.00016.52
8.0.270.0130.00516.52
8.0.260.0130.00316.52
8.0.250.0120.00416.74
8.0.240.0100.00716.75
8.0.230.0130.00316.52
8.0.220.0140.00316.62
8.0.210.0150.00416.52
8.0.200.0150.00316.71
8.0.190.0110.00616.74
8.0.180.0140.00416.61
8.0.170.0000.01616.63
8.0.160.0170.00016.62
8.0.150.0110.00716.59
8.0.140.0120.00416.86
8.0.130.0180.00016.75
8.0.120.0110.00616.61
8.0.110.0140.00316.52
8.0.100.0110.00516.52
8.0.90.0110.00516.60
8.0.80.0120.00516.52
8.0.70.0160.00016.73
8.0.60.0070.00716.93
8.0.50.0090.00916.63
8.0.30.0050.01116.74
8.0.20.0100.00516.62
8.0.10.0120.00416.63

preferences:
28.84 ms | 403 KiB | 5 Q