3v4l.org

run code in 300+ PHP versions simultaneously
<?php function get_bcv_filename($get_the_path){ $path_name = pathinfo($get_the_path, PATHINFO_DIRNAME); $base_name = pathinfo($get_the_path, PATHINFO_BASENAME); $file_name = pathinfo($get_the_path, PATHINFO_FILENAME); // get and store the files name $ext_name = pathinfo($get_the_path, PATHINFO_EXTENSION); // get and store the files original extension echo $path_name; //echo $base_name; //$my_file_src = "http://ballerscv.media2/wp‑content/uploads/"; // get folder where converted files are now stored $my_file_src = "http://ballerscv.media2/wp-content/uploads/"; $new_file_ext =".mp4"; // non mp4 files are being converted to mp4 so will have this extension. // if the file is an mp4 file it won't be converted to mp4 so get the original file folder and extension if ( strtolower($ext_name) == "m4v" || strtolower($ext_name) == "mp4"){ //$my_file_src = "http://ballerscv.com/wp‑content/uploads/formidable/"; // set folder to original file folder $my_file_src = $path_name . "/" ; $new_file_ext = "." . $ext_name; // set extension to original extension } $new_file = $my_file_src . $file_name . $new_file_ext; return $new_file; } //echo pathinfo("http://ballerscv.com/wp‑content/uploads/formidable/everyfile.flv", PATHINFO_DIRNAME); echo get_bcv_filename("http://ballerscv.media2/wp-content/uploads/formidable/everyfile.flv"); ?>

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.01216.61
8.3.50.0080.01021.16
8.3.40.0110.00318.42
8.3.30.0110.00418.94
8.3.20.0040.00420.34
8.3.10.0040.00423.61
8.3.00.0040.00419.56
8.2.180.0130.00318.41
8.2.170.0100.01018.61
8.2.160.0100.01022.96
8.2.150.0050.00224.18
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0080.00019.23
8.2.110.0060.00321.02
8.2.100.0040.00717.72
8.2.90.0080.00019.23
8.2.80.0030.00617.97
8.2.70.0070.00417.50
8.2.60.0080.00017.92
8.2.50.0040.00718.07
8.2.40.0000.00818.22
8.2.30.0000.00918.12
8.2.20.0020.00517.78
8.2.10.0000.00718.11
8.2.00.0000.00718.16
8.1.280.0110.00425.92
8.1.270.0000.00820.28
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0050.00522.02
8.1.230.0040.00719.01
8.1.220.0000.00917.74
8.1.210.0040.00418.77
8.1.200.0040.00717.22
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0090.00018.55
8.1.160.0000.00722.01
8.1.150.0040.00418.96
8.1.140.0000.00817.54
8.1.130.0000.00717.86
8.1.120.0080.00017.50
8.1.110.0000.00717.52
8.1.100.0070.00017.46
8.1.90.0040.00417.52
8.1.80.0040.00417.50
8.1.70.0000.00717.46
8.1.60.0030.00617.66
8.1.50.0080.00017.49
8.1.40.0000.00717.47
8.1.30.0080.00017.61
8.1.20.0040.00417.68
8.1.10.0040.00417.45
8.1.00.0030.00517.39
8.0.300.0060.00318.77
8.0.290.0020.00516.63
8.0.280.0070.00018.59
8.0.270.0000.00717.34
8.0.260.0030.00317.35
8.0.250.0030.00317.04
8.0.240.0050.00316.88
8.0.230.0000.00716.96
8.0.220.0000.00716.83
8.0.210.0000.00716.91
8.0.200.0000.00716.98
8.0.190.0000.00817.01
8.0.180.0030.00316.86
8.0.170.0040.00416.84
8.0.160.0000.00716.90
8.0.150.0070.00016.89
8.0.140.0050.00216.89
8.0.130.0000.00713.33
8.0.120.0080.00016.81
8.0.110.0040.00416.93
8.0.100.0060.00316.76
8.0.90.0100.00016.82
8.0.80.0090.00616.87
8.0.70.0030.00516.73
8.0.60.0040.00416.83
8.0.50.0040.00416.87
8.0.30.0070.01217.15
8.0.20.0020.01617.40
8.0.10.0000.00716.92
8.0.00.0080.01016.77
7.4.330.0000.00515.04
7.4.320.0060.00016.69
7.4.300.0000.00616.55
7.4.290.0030.00316.64
7.4.280.0060.00316.48
7.4.270.0000.00716.65
7.4.260.0040.00416.52
7.4.250.0040.00416.57
7.4.240.0060.00116.51
7.4.230.0040.00416.45
7.4.220.0000.02016.65
7.4.210.0080.00616.67
7.4.200.0070.00016.48
7.4.160.0080.00816.69
7.4.150.0070.01117.40
7.4.140.0100.00917.86
7.4.130.0090.01116.45
7.4.120.0050.01316.59
7.4.110.0180.00616.69
7.4.100.0120.00916.74
7.4.90.0130.00316.30
7.4.80.0070.01419.39
7.4.70.0100.00716.61
7.4.60.0090.00616.68
7.4.50.0000.00916.67
7.4.40.0130.00916.63
7.4.30.0100.00816.49
7.4.00.0060.00915.14
7.3.330.0030.00313.32
7.3.320.0050.00013.16
7.3.310.0030.00316.23
7.3.300.0070.00016.34
7.3.290.0080.00616.33
7.3.280.0060.01216.30
7.3.270.0130.00417.40
7.3.260.0060.01816.55
7.3.250.0060.01016.55
7.3.240.0000.01816.39
7.3.230.0090.00916.55
7.3.210.0090.00916.50
7.3.200.0060.01016.50
7.3.190.0100.00616.68
7.3.180.0070.01116.57
7.3.170.0180.00316.56
7.3.160.0090.00616.62
7.2.330.0070.01116.85
7.2.320.0070.01416.78
7.2.310.0100.00916.76
7.2.300.0070.01016.77
7.2.290.0100.00916.78
7.2.00.0080.00419.23
7.1.100.0000.00818.06
7.1.70.0080.00317.21
7.1.60.0060.01319.86
7.1.50.0130.01316.98
7.1.00.0070.07322.28
7.0.200.0000.00916.79
7.0.60.0070.08319.96
7.0.50.0000.08317.89
7.0.40.0000.06020.26
7.0.30.0500.07320.27
7.0.20.0430.06720.45
7.0.10.0030.04320.07
7.0.00.0030.05720.19
5.6.280.0070.07021.11
5.6.210.0130.08020.61
5.6.200.0100.07318.20
5.6.190.0030.04320.50
5.6.180.0300.07320.47
5.6.170.0270.08020.41
5.6.160.0070.04320.51
5.6.150.0070.07018.21
5.6.140.0030.06318.28
5.6.130.0070.07718.27
5.6.120.0070.06321.00
5.6.110.0170.07321.00
5.6.100.0030.04321.00
5.6.90.0030.04720.99
5.6.80.0170.07020.42
5.5.350.0030.08320.43
5.5.340.0130.07317.96
5.5.330.0000.04320.28
5.5.320.3630.05020.34
5.5.310.0300.04020.51
5.5.300.0100.07718.05
5.5.290.0130.05717.97
5.5.280.0100.07020.81
5.5.270.0070.08320.73
5.5.260.0100.05320.73
5.5.250.0100.08320.62
5.5.240.0070.07020.18
5.4.450.1070.03719.55
5.4.440.1530.03319.54
5.4.430.0600.04019.32
5.4.420.0200.04719.38
5.4.410.0100.05719.26
5.4.400.0130.06319.23
5.4.390.0100.05319.16
5.4.380.0030.06019.12
5.4.370.0070.05319.08
5.4.360.0030.05719.24
5.4.350.0070.06019.11
5.4.340.0030.06019.12
5.4.320.0030.06319.17
5.4.310.0230.04019.23
5.4.300.0100.05319.12
5.4.290.0100.05019.20
5.4.280.0100.05019.06
5.4.270.0070.05319.11
5.4.260.0030.05719.09
5.4.250.0130.05719.11
5.4.240.0170.05019.06
5.4.230.0130.05019.20
5.4.220.0130.05019.11
5.4.210.0100.05318.96
5.4.200.0100.05016.63
5.4.190.0200.04018.96
5.4.180.0170.05318.96
5.4.170.0070.07019.00
5.4.160.0000.06019.04
5.4.150.0200.06019.04
5.4.140.0100.07016.26
5.4.130.0130.04316.43
5.4.120.0070.05316.26
5.4.110.0030.05716.25
5.4.100.0100.05016.59
5.4.90.0170.04316.63
5.4.80.0070.05016.65
5.4.70.0130.05316.33
5.4.60.0100.06016.55
5.4.50.0030.05316.56
5.4.40.0130.04716.41
5.4.30.0170.04316.59
5.4.20.0130.06016.59
5.4.10.0100.05316.44
5.4.00.0100.04716.11
5.3.290.0070.05714.69
5.3.280.0070.05314.50
5.3.270.0170.04714.51
5.3.260.0070.05314.61
5.3.250.0130.04714.52
5.3.240.0130.04714.64
5.3.230.0170.04314.51
5.3.220.0070.05314.42
5.3.210.0070.05714.57
5.3.200.0130.05014.57
5.3.190.0170.04714.47
5.3.180.0100.04714.54
5.3.170.0130.04314.46
5.3.160.0170.04014.62
5.3.150.0070.05714.57
5.3.140.0130.04714.60
5.3.130.0130.04714.45
5.3.120.0200.04314.39
5.3.110.0070.05314.57
5.3.100.0030.05314.15
5.3.90.0030.06014.03
5.3.80.0100.06013.93
5.3.70.0070.05314.10
5.3.60.0030.06014.01
5.3.50.0170.04714.00
5.3.40.0100.05014.00
5.3.30.0170.04013.96
5.3.20.0070.05013.76
5.3.10.0030.05313.57
5.3.00.0130.06313.62
5.2.170.0100.05311.21
5.2.160.0070.04311.05
5.2.150.0070.04011.05
5.2.140.0100.03711.13
5.2.130.0030.04311.26
5.2.120.0070.04011.05
5.2.110.0070.04011.02
5.2.100.0070.04011.11
5.2.90.0100.03711.16
5.2.80.0100.03711.00
5.2.70.0030.04310.95
5.2.60.0000.04710.98
5.2.50.0000.05311.08
5.2.40.0030.04310.96
5.2.30.0130.03310.88
5.2.20.0100.03310.99
5.2.10.0070.03711.02
5.2.00.0100.03310.62
5.1.60.0100.0279.91
5.1.50.0100.0309.89
5.1.40.0070.0339.86
5.1.30.0130.03310.39
5.1.20.0100.03310.20
5.1.10.0000.04010.00
5.1.00.0030.04010.13
5.0.50.0000.0338.47
5.0.40.0100.0208.37
5.0.30.0070.0408.27
5.0.20.0100.0208.30
5.0.10.0030.0278.03
5.0.00.0000.0438.17
4.4.90.0000.0235.95
4.4.80.0030.0205.93
4.4.70.0000.0235.84
4.4.60.0000.0235.87
4.4.50.0000.0235.88
4.4.40.0030.0335.91
4.4.30.0000.0235.89
4.4.20.0030.0235.93
4.4.10.0030.0205.90
4.4.00.0030.0335.80
4.3.110.0030.0205.84
4.3.100.0070.0175.70
4.3.90.0030.0205.79
4.3.80.0030.0335.79
4.3.70.0000.0235.86
4.3.60.0000.0305.68
4.3.50.0000.0275.80
4.3.40.0070.0375.63
4.3.30.0030.0204.43
4.3.20.0070.0174.58
4.3.10.0030.0204.41
4.3.00.0330.01714.77

preferences:
35.24 ms | 401 KiB | 5 Q