3v4l.org

run code in 300+ PHP versions simultaneously
<?php $chapter_full_path = "/test/eeee/last/"; $chapter_path_name = "last"; $chapter_path_name_length=strlen($chapter_path_name); $oldParentFullPathLength = strlen($chapter_full_path) - $chapter_path_name_length; $oldParentFullPath=substr($chapter_full_path,0,$oldParentFullPathLength-1); echo $oldParentFullPath;

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.40.0040.01118.51
8.3.30.0070.00718.89
8.3.20.0040.00420.34
8.3.10.0030.00623.53
8.3.00.0000.00819.25
8.2.170.0100.00322.96
8.2.160.0040.01220.38
8.2.150.0070.00024.18
8.2.140.0050.00224.66
8.2.130.0040.00426.16
8.2.120.0080.00020.65
8.2.110.0090.00020.38
8.2.100.0000.01118.16
8.2.90.0000.00719.17
8.2.80.0000.00817.97
8.2.70.0000.01117.49
8.2.60.0050.00317.80
8.2.50.0030.00618.07
8.2.40.0000.00718.21
8.2.30.0000.00817.94
8.2.20.0080.00017.60
8.2.10.0050.00318.16
8.2.00.0040.00417.63
8.1.270.0000.00823.88
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0050.00322.18
8.1.230.0080.00419.08
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0040.00417.23
8.1.190.0050.00317.22
8.1.180.0050.00318.10
8.1.170.0000.00818.52
8.1.160.0000.00721.85
8.1.150.0040.00418.73
8.1.140.0000.00717.38
8.1.130.0040.00417.73
8.1.120.0020.00517.28
8.1.110.0000.00817.32
8.1.100.0000.00717.42
8.1.90.0000.00717.31
8.1.80.0000.00817.36
8.1.70.0030.00317.33
8.1.60.0000.00817.57
8.1.50.0000.00817.45
8.1.40.0000.00917.45
8.1.30.0060.00317.54
8.1.20.0000.00717.48
8.1.10.0040.00417.53
8.1.00.0040.00417.48
8.0.300.0050.00318.77
8.0.290.0040.00416.63
8.0.280.0030.00318.43
8.0.270.0040.00417.17
8.0.260.0000.00717.25
8.0.250.0000.00716.91
8.0.240.0040.00416.89
8.0.230.0030.00316.90
8.0.220.0000.00716.88
8.0.210.0040.00316.81
8.0.200.0070.00016.79
8.0.190.0000.00716.81
8.0.180.0030.00316.83
8.0.170.0000.00816.85
8.0.160.0050.00216.93
8.0.150.0070.00016.72
8.0.140.0000.00716.61
8.0.130.0000.00913.22
8.0.120.0080.00016.71
8.0.110.0000.00816.75
8.0.100.0000.00716.71
8.0.90.0040.00416.78
8.0.80.0040.01116.75
8.0.70.0070.00016.82
8.0.60.0050.00316.73
8.0.50.0040.00416.75
8.0.30.0080.01116.99
8.0.20.0130.00817.40
8.0.10.0020.00516.95
8.0.00.0100.00716.77
7.4.330.0060.00015.12
7.4.320.0070.00016.43
7.4.300.0040.00416.54
7.4.290.0000.00716.59
7.4.280.0040.00416.52
7.4.270.0040.00416.51
7.4.260.0000.00716.44
7.4.250.0030.00516.48
7.4.240.0020.00616.40
7.4.230.0030.00316.27
7.4.220.0060.01216.47
7.4.210.0140.00716.33
7.4.200.0040.00316.50
7.4.160.0070.01016.66
7.4.150.0090.00917.40
7.4.140.0090.00917.86
7.4.130.0090.01016.47
7.4.120.0090.00916.45
7.4.110.0140.00916.55
7.4.100.0170.00016.34
7.4.90.0080.00816.29
7.4.80.0100.00719.39
7.4.70.0060.01616.46
7.4.60.0090.00616.43
7.4.50.0030.00516.39
7.4.40.0150.00616.42
7.4.30.0070.00716.46
7.4.10.0090.00914.79
7.4.00.0030.01214.80
7.3.330.0060.00013.04
7.3.320.0000.00613.09
7.3.310.0000.00716.25
7.3.300.0060.00016.25
7.3.290.0110.00516.30
7.3.280.0070.01016.26
7.3.270.0150.00617.40
7.3.260.0100.01416.14
7.3.250.0140.00516.22
7.3.240.0090.00916.34
7.3.230.0180.00416.39
7.3.210.0160.00816.33
7.3.200.0100.00719.39
7.3.190.0200.01916.51
7.3.180.0060.00916.29
7.3.170.0030.01216.37
7.3.160.0070.01016.20
7.3.130.0070.01115.05
7.3.120.0030.00914.72
7.3.110.0080.01114.91
7.3.100.0090.00614.96
7.3.90.0040.00815.04
7.3.80.0070.00715.11
7.3.70.0000.01514.84
7.3.60.0070.00314.55
7.3.50.0090.00314.66
7.3.40.0110.00414.75
7.3.30.0030.01014.84
7.3.20.0100.00016.63
7.3.10.0080.00316.72
7.3.00.0000.01016.29
7.2.330.0090.00916.73
7.2.320.0100.01316.57
7.2.310.0120.00916.60
7.2.300.0100.00716.56
7.2.290.0100.00616.55
7.2.260.0070.01015.24
7.2.250.0100.00715.26
7.2.240.0060.00914.99
7.2.230.0040.01114.89
7.2.220.0030.01014.90
7.2.210.0140.00015.01
7.2.200.0060.00914.78
7.2.190.0000.01414.91
7.2.180.0090.00615.07
7.2.170.0030.01014.93
7.2.160.0100.00615.10
7.2.150.0060.00616.55
7.2.140.0040.00716.89
7.2.130.0080.00616.61
7.2.120.0110.00416.74
7.2.110.0040.01116.88
7.2.100.0030.01516.77
7.2.90.0000.01516.95
7.2.80.0060.00917.02
7.2.70.0040.01116.95
7.2.60.0040.00716.95
7.2.50.0000.01116.86
7.2.40.0130.00316.72
7.2.30.0100.00316.93
7.2.20.0090.00616.87
7.2.10.0070.00716.93
7.2.00.0070.01118.12
7.1.330.0060.00315.75
7.1.320.0030.00615.89
7.1.310.0000.01415.63
7.1.300.0030.00715.90
7.1.290.0040.00715.89
7.1.280.0110.00315.81
7.1.270.0060.00316.03
7.1.260.0030.01015.95
7.1.250.0060.00615.95
7.1.240.0040.01115.79
7.1.230.0100.00615.77
7.1.220.0030.00815.83
7.1.210.0040.00915.96
7.1.200.0060.00315.72
7.1.190.0120.00615.78
7.1.180.0060.00315.64
7.1.170.0040.01115.52
7.1.160.0070.01015.53
7.1.150.0030.00715.87
7.1.140.0060.00915.69
7.1.130.0100.00015.92
7.1.120.0040.00815.96
7.1.110.0090.00615.96
7.1.100.0060.00616.92
7.1.90.0060.00315.93
7.1.80.0030.00915.82
7.1.70.0060.00216.40
7.1.60.0060.01417.53
7.1.50.0050.01316.28
7.1.40.0140.00415.80
7.1.30.0070.01115.65
7.1.20.0090.00015.83
7.1.10.0090.00615.81
7.1.00.0120.03319.13
7.0.330.0040.00415.57
7.0.320.0110.00415.22
7.0.310.0040.01115.36
7.0.300.0040.00715.26
7.0.290.0040.01215.34
7.0.280.0100.00015.36
7.0.270.0090.00315.27
7.0.260.0040.01115.07
7.0.250.0070.00715.34
7.0.240.0070.00315.45
7.0.230.0090.00315.64
7.0.220.0030.00715.57
7.0.210.0070.00315.39
7.0.200.0000.01016.16
7.0.190.0000.01415.48
7.0.180.0030.01015.53
7.0.170.0000.01415.21
7.0.160.0060.00615.43
7.0.150.0110.00415.43
7.0.140.0030.04018.65
7.0.130.0030.00615.46
7.0.120.0030.01015.21
7.0.110.0030.00515.39
7.0.100.0000.01315.56
7.0.90.0000.01415.36
7.0.80.0040.00415.51
7.0.70.0030.00915.60
7.0.60.0070.03117.73
7.0.50.0050.02716.71
7.0.40.0030.02816.75
7.0.30.0180.03316.68
7.0.20.0120.02616.74
7.0.10.0060.04316.75
7.0.00.0070.03316.84
5.6.400.0000.01113.99
5.6.390.0060.00614.29
5.6.380.0090.00913.90
5.6.370.0070.01014.22
5.6.360.0070.01114.35
5.6.350.0000.01614.31
5.6.340.0000.00814.38
5.6.330.0000.01314.23
5.6.320.0030.00614.56
5.6.310.0060.00914.25
5.6.300.0070.00414.27
5.6.290.0000.01414.20
5.6.280.0030.00614.25
5.6.270.0000.01114.41
5.6.260.0000.01114.51
5.6.250.0060.01014.36
5.6.240.0090.00914.09
5.6.230.0060.00614.43
5.6.220.0040.00814.23
5.6.210.0090.03417.29
5.6.200.0100.04216.21
5.6.190.0020.04217.43
5.6.180.0230.02117.31
5.6.170.0150.04317.40
5.6.160.0050.05117.36
5.6.150.0050.03816.18
5.6.140.0070.03816.03
5.6.130.0060.03816.33
5.6.120.0080.04417.60
5.6.110.0070.04917.67
5.6.100.0080.03717.89
5.6.90.0050.03217.62
5.6.80.0070.02917.29
5.6.70.0040.01214.29
5.6.60.0090.00014.32
5.6.50.0000.01114.10
5.6.40.0140.00014.17
5.6.30.0070.00714.25
5.6.20.0000.00814.10
5.6.10.0100.00014.32
5.6.00.0140.00014.14
5.5.380.0090.00913.97
5.5.370.0070.00413.92
5.5.360.0030.00614.57
5.5.350.0030.03217.33
5.5.340.0020.04216.21
5.5.330.0110.02517.09
5.5.320.0870.02517.21
5.5.310.0170.02217.27
5.5.300.0090.04216.09
5.5.290.0060.02516.14
5.5.280.0020.03817.30
5.5.270.0090.04217.44
5.5.260.0130.04317.29
5.5.250.0050.03517.39
5.5.240.0060.04017.14
5.5.230.0040.00414.04
5.5.220.0000.01514.04
5.5.210.0070.00314.27
5.5.200.0040.00813.96
5.5.190.0050.00314.31
5.5.180.0030.00614.02
5.5.170.0040.01114.12
5.5.160.0030.01013.93
5.5.150.0080.00013.88
5.5.140.0060.00313.98
5.5.130.0060.00613.99
5.5.120.0090.00013.93
5.5.110.0040.01114.29
5.5.100.0040.00814.26
5.5.90.0000.00814.17
5.5.80.0090.00614.05
5.5.70.0120.00314.16
5.5.60.0030.01213.96
5.5.50.0000.01113.96
5.5.40.0030.01014.30
5.5.30.0050.00314.38
5.5.20.0040.00414.14
5.5.10.0130.00013.91
5.5.00.0080.00013.80
5.4.450.0320.02415.56
5.4.440.0420.02715.57
5.4.430.0440.02015.73
5.4.420.0400.02615.64
5.4.410.0180.02815.62
5.4.400.0450.02015.53
5.4.390.0250.02815.63
5.4.380.0530.02315.62
5.4.370.0440.02215.53
5.4.360.0300.02215.62
5.4.350.0210.02815.46
5.4.340.0420.02015.54
5.4.330.0030.00912.01
5.4.320.0380.01815.54
5.4.310.0270.02515.54
5.4.300.0270.02415.52
5.4.290.0450.02015.46
5.4.280.0440.02215.52
5.4.270.0350.02015.54
5.4.260.0230.02315.41
5.4.250.0370.02615.41
5.4.240.0380.02115.40
5.4.230.0340.02315.44
5.4.220.0180.02215.40
5.4.210.0390.02115.53
5.4.200.0480.02515.42
5.4.190.0350.02615.61
5.4.180.0290.01915.62
5.4.170.0340.02115.53
5.4.160.0280.02515.60
5.4.150.0350.02415.44
5.4.140.0390.01314.14
5.4.130.0230.02414.14
5.4.120.0150.01814.16
5.4.110.0310.02314.19
5.4.100.0350.02514.22
5.4.90.0300.03114.11
5.4.80.0320.02214.03
5.4.70.0250.02314.11
5.4.60.0180.02014.19
5.4.50.0410.01614.03
5.4.40.0280.02514.18
5.4.30.0140.01814.21
5.4.20.0330.01514.18
5.4.10.0280.02514.18
5.4.00.0480.02013.97
5.3.290.0330.03715.93
5.3.280.0400.03315.93
5.3.270.0530.03715.93
5.3.260.0830.03715.93
5.3.250.0230.04315.93
5.3.240.0370.03315.93
5.3.230.0170.04715.93
5.3.220.0600.03015.93
5.3.210.0730.04315.93
5.3.200.0670.03315.93
5.3.190.0830.06315.93
5.3.180.0770.04715.93
5.3.170.0300.04315.93
5.3.160.0400.03715.93
5.3.150.0430.04315.93
5.3.140.0570.03015.93
5.3.130.0470.04715.93
5.3.120.0570.03715.93
5.3.110.0430.04715.93
5.3.100.0970.04315.93
5.3.90.0630.05315.93
5.3.80.0800.04015.93
5.3.70.0770.03715.93
5.3.60.0300.04015.93
5.3.50.0330.04315.93
5.3.40.0670.03315.93
5.3.30.0230.04015.93
5.3.20.0530.04015.93
5.3.10.0570.03715.93
5.3.00.0630.04315.93
5.2.170.0530.02715.93
5.2.160.0500.04315.93
5.2.150.0670.03715.93
5.2.140.0530.03315.93
5.2.130.0630.03315.93
5.2.120.0270.05315.93
5.2.110.0630.03715.93
5.2.100.0500.03015.93
5.2.90.0370.04315.93
5.2.80.0630.03715.93
5.2.70.0300.03315.93
5.2.60.0470.03315.93
5.2.50.0370.03015.93
5.2.40.0530.02315.93
5.2.30.0400.02715.93
5.2.20.0700.02315.93
5.2.10.0230.02315.93
5.2.00.0530.03015.93
5.1.60.0300.03015.93
5.1.50.0300.02015.93
5.1.40.0600.01715.93
5.1.30.0430.02715.93
5.1.20.0470.03015.93
5.1.10.0330.03315.93
5.1.00.0270.03715.93
5.0.50.0030.02715.93
5.0.40.0100.02315.93
5.0.30.0200.03315.93
5.0.20.0130.02015.93
5.0.10.0130.02015.93
5.0.00.0430.03015.93
4.4.90.0100.01715.93
4.4.80.0100.01715.93
4.4.70.0200.01715.93
4.4.60.0130.01715.93
4.4.50.0300.01315.93
4.4.40.0130.02715.93
4.4.30.0100.01715.93
4.4.20.0230.02715.93
4.4.10.0330.01315.93
4.4.00.0100.02315.93
4.3.110.0070.01315.93
4.3.100.0130.01715.93
4.3.90.0100.03015.93
4.3.80.0270.02315.93
4.3.70.0270.01015.93
4.3.60.0300.02015.93
4.3.50.0270.01715.93
4.3.40.0270.02315.93
4.3.30.0030.01315.93
4.3.20.0230.01315.93
4.3.10.0030.02015.93
4.3.00.0070.01719.02

preferences:
43.68 ms | 400 KiB | 5 Q