3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'https://www.example.com/path/to/product/filename.html'; $basePath = dirname($url) . '/'; echo $basePath, PHP_EOL;

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.0120.00616.75
8.3.50.0130.00721.89
8.3.40.0130.00818.55
8.3.30.0140.00018.76
8.3.20.0000.00818.60
8.3.10.0070.00021.72
8.3.00.0040.00421.80
8.2.180.0150.00325.92
8.2.170.0000.01518.79
8.2.160.0170.00322.96
8.2.150.0070.00025.66
8.2.140.0070.01024.66
8.2.130.0040.00422.25
8.2.120.0070.00026.35
8.2.110.0030.00621.18
8.2.100.0060.00617.84
8.2.90.0000.00817.84
8.2.80.0040.00417.97
8.2.70.0000.00818.04
8.2.60.0000.00818.03
8.2.50.0040.00418.10
8.2.40.0000.00820.45
8.2.30.0050.00319.23
8.2.20.0080.00018.10
8.2.10.0000.00718.18
8.2.00.0020.00517.74
8.1.280.0120.00625.92
8.1.270.0080.00423.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.97
8.1.230.0060.00622.67
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0030.00617.23
8.1.180.0030.00518.10
8.1.170.0030.00620.62
8.1.160.0000.00723.96
8.1.150.0040.00418.90
8.1.140.0000.00719.48
8.1.130.0030.00517.44
8.1.120.0030.00317.56
8.1.110.0040.00417.37
8.1.100.0000.00717.36
8.1.90.0040.00417.46
8.1.80.0040.00417.36
8.1.70.0080.00017.48
8.1.60.0060.00317.58
8.1.50.0090.00017.57
8.1.40.0030.00717.49
8.1.30.0040.00417.67
8.1.20.0000.00717.62
8.1.10.0070.00017.43
8.1.00.0090.00317.45
8.0.300.0000.00721.52
8.0.290.0000.00816.63
8.0.280.0000.00718.56
8.0.270.0000.00716.85
8.0.260.0050.00316.74
8.0.250.0030.00316.85
8.0.240.0030.00316.89
8.0.230.0090.00016.99
8.0.220.0000.00716.91
8.0.210.0000.00716.78
8.0.200.0060.00316.94
8.0.190.0070.00017.01
8.0.180.0000.00716.91
8.0.170.0070.00016.87
8.0.160.0040.00416.93
8.0.150.0000.00716.73
8.0.140.0000.00816.86
8.0.130.0000.00513.34
8.0.120.0030.00515.05
8.0.110.0050.00415.01
8.0.100.0050.00415.05
8.0.90.0040.00415.11
8.0.80.0060.00715.12
8.0.70.0060.00215.04
8.0.60.0040.00414.92
8.0.50.0050.00415.01
8.0.30.0100.00615.65
8.0.20.0110.00916.38
8.0.10.0050.00415.07
8.0.00.0020.01114.90
7.4.330.0020.00215.55
7.4.320.0000.00616.54
7.4.300.0030.00316.34
7.4.290.0070.00016.54
7.4.280.0030.00516.43
7.4.270.0070.00016.54
7.4.260.0070.00016.39
7.4.250.0050.00314.79
7.4.240.0070.00215.37
7.4.230.0080.00214.93
7.4.220.0090.00514.90
7.4.210.0070.00715.70
7.4.200.0080.00214.89
7.4.190.0060.00613.30
7.4.180.0120.00213.24
7.4.160.0100.00515.40
7.4.150.0110.00415.34
7.4.140.0100.01016.67
7.4.130.0110.00815.36
7.4.120.0100.00715.32
7.4.110.0100.00214.77
7.4.100.0080.00314.84
7.4.90.0120.00214.83
7.4.80.0080.00816.26
7.4.70.0040.00714.78
7.4.60.0060.00714.74
7.4.50.0050.00514.71
7.4.40.0100.00414.75
7.4.30.0030.01014.80
7.4.20.0050.00313.17
7.4.10.0070.00013.05
7.4.00.0020.01014.36
7.3.330.0030.00313.14
7.3.320.0020.00213.16
7.3.310.0020.00714.70
7.3.300.0020.00814.66
7.3.290.0060.00414.50
7.3.280.0120.00715.77
7.3.270.0050.01015.27
7.3.260.0120.00315.36
7.3.250.0080.00815.52
7.3.240.0080.01015.19
7.3.230.0060.00614.74
7.3.220.0050.00513.10
7.3.210.0110.00214.65
7.3.200.0080.00714.55
7.3.190.0080.00514.60
7.3.180.0090.00314.70
7.3.170.0100.00514.81
7.3.160.0050.00914.84
7.3.150.0040.00413.10
7.3.140.0000.00712.93
7.3.130.0030.00513.02
7.3.120.0100.00613.92
7.3.110.0060.00913.91
7.3.100.0070.00713.75
7.3.90.0080.00414.01
7.3.80.0050.00614.01
7.3.70.0000.00713.94
7.3.60.0020.00813.91
7.3.50.0000.01114.07
7.3.40.0040.00513.88
7.3.30.0050.00514.05
7.3.20.0080.00415.82
7.3.10.0070.00516.19
7.3.00.0090.00216.12
7.2.340.0040.00812.96
7.2.330.0070.00914.81
7.2.320.0090.00814.89
7.2.310.0120.00514.73
7.2.300.0120.00414.81
7.2.290.0060.00814.83
7.2.280.0090.00613.02
7.2.270.0110.00313.04
7.2.260.0090.00312.97
7.2.250.0070.00814.06
7.2.240.0110.00514.01
7.2.230.0080.00813.75
7.2.220.0060.00614.02
7.2.210.0110.00313.88
7.2.200.0080.00513.99
7.2.190.0010.01214.03
7.2.180.0040.01114.00
7.2.170.0060.00713.90
7.2.160.0100.00213.18
7.2.150.0130.00014.91
7.2.140.0120.00014.88
7.2.130.0090.00415.89
7.2.120.0110.00115.77
7.2.110.0040.00615.94
7.2.100.0080.00615.91
7.2.90.0090.00615.95
7.2.80.0130.00015.91
7.2.70.0080.00315.92
7.2.60.0060.00616.13
7.2.50.0090.00315.89
7.2.40.0060.00515.91
7.2.30.0100.00315.99
7.2.20.0110.00116.07
7.2.10.0050.00815.88
7.2.00.0110.00216.00
7.1.330.0080.00414.97
7.1.320.0040.00614.91
7.1.310.0090.00314.91
7.1.300.0090.00214.87
7.1.290.0110.00015.07
7.1.280.0090.00314.99
7.1.270.0090.00115.08
7.1.260.0040.00614.98
7.1.250.0080.00415.06
7.1.240.0060.00614.03
7.1.230.0090.00314.11
7.1.220.0100.00314.22
7.1.210.0120.00014.09
7.1.200.0100.00214.96
7.1.190.0090.00214.11
7.1.180.0060.00614.11
7.1.170.0090.00314.18
7.1.160.0040.00814.18
7.1.150.0110.00014.11
7.1.140.0080.00414.16
7.1.130.0120.00014.05
7.1.120.0060.00614.03
7.1.110.0120.00014.00
7.1.100.0100.00213.97
7.1.90.0130.00014.00
7.1.80.0080.00414.18
7.1.70.0050.00515.65
7.1.60.0090.00615.69
7.1.50.0060.00515.56
7.1.40.0080.00715.32
7.1.30.0080.00315.48
7.1.20.0090.00215.36
7.1.10.0040.00615.37
7.1.00.0040.00615.36
7.0.330.0080.00313.88
7.0.320.0080.00313.91
7.0.310.0090.00213.85
7.0.300.0120.00013.87
7.0.290.0060.00613.88
7.0.280.0090.00213.99
7.0.270.0070.00513.95
7.0.260.0120.00013.89
7.0.250.0130.00014.30
7.0.240.0060.00614.15
7.0.230.0080.00414.03
7.0.220.0090.00314.20
7.0.210.0000.01114.00
7.0.200.0080.00215.39
7.0.190.0050.00615.35
7.0.180.0070.00515.14
7.0.170.0070.00315.27
7.0.160.0050.00515.22
7.0.150.0060.00415.06
7.0.140.0030.00715.20
7.0.130.0100.00015.42
7.0.120.0080.00215.38
7.0.110.0080.00115.07
7.0.100.0080.00215.19
7.0.90.0050.00515.12
7.0.80.0060.00315.06
7.0.70.0050.00515.22
7.0.60.0060.00515.18
7.0.50.0050.00515.13
7.0.40.0030.00714.39
7.0.30.0080.00214.40
7.0.20.0060.00314.32
7.0.10.0070.00414.44
7.0.00.0080.00514.41
5.6.400.0090.00212.53
5.6.390.0080.00312.70
5.6.380.0080.00312.55
5.6.370.0070.00512.71
5.6.360.0000.01112.59
5.6.350.0040.00812.48
5.6.340.0000.01212.41
5.6.330.0070.00512.56
5.6.320.0090.00312.45
5.6.310.0080.00312.45
5.6.300.0030.02416.63
5.6.290.0080.02216.65
5.6.280.0060.02216.79
5.6.270.0030.02416.81
5.6.260.0050.02216.74
5.6.250.0070.02016.68
5.6.240.0110.02816.69
5.6.230.0060.02616.74
5.6.220.0040.02516.70
5.6.210.0070.02516.79
5.6.200.0050.02516.77
5.6.190.0070.02616.91
5.6.180.0070.02016.60
5.6.170.0050.02316.84
5.6.160.0030.02516.68
5.6.150.0070.02216.73
5.6.140.0030.02516.71
5.6.130.0060.02116.63
5.6.120.0110.02016.70
5.6.110.0040.03316.69
5.6.100.0060.02416.66
5.6.90.0050.02116.67
5.6.80.0030.02416.32
5.6.70.0100.01816.38
5.6.60.0070.02116.47
5.6.50.0050.02216.41
5.6.40.0040.02316.41
5.6.30.0070.01916.35
5.6.20.0060.02716.31
5.6.10.0000.03016.35
5.6.00.0070.02016.30

preferences:
32.5 ms | 401 KiB | 5 Q