3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dir_root = '/coucou/test/install/../'; $dir = '/coucou/test/install/../images/logo/0'; if (strpos($dir, $dir_root) === 0) { $dir = './' . substr($dir, strlen(DIR_ROOT) + 1); echo $dir; }

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.4.20.0090.00617.73
8.4.10.0030.00617.94
8.3.150.0070.01117.10
8.3.140.0090.00916.61
8.3.130.0030.00718.31
8.3.120.0040.00420.75
8.3.110.0100.01020.94
8.3.100.0060.00324.06
8.3.90.0120.00326.77
8.3.80.0070.00317.97
8.3.70.0180.00016.50
8.3.60.0100.01018.43
8.3.50.0070.01222.05
8.3.40.0100.00618.64
8.3.30.0110.01118.58
8.3.20.0040.00420.34
8.3.10.0030.00620.61
8.3.00.0070.00021.92
8.2.260.0040.01418.62
8.2.250.0040.00416.60
8.2.240.0060.00317.09
8.2.230.0040.00422.58
8.2.220.0030.00637.54
8.2.210.0130.00726.77
8.2.200.0060.00316.88
8.2.190.0130.00616.87
8.2.180.0070.00716.63
8.2.170.0110.00422.96
8.2.160.0090.00622.26
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0030.00626.16
8.2.120.0040.00420.84
8.2.110.0060.00322.08
8.2.100.0070.00417.84
8.2.90.0040.00417.63
8.2.80.0040.00419.09
8.2.70.0000.00817.63
8.2.60.0040.00417.63
8.2.50.0030.00618.09
8.2.40.0060.00620.36
8.2.30.0060.00319.47
8.2.20.0040.00417.70
8.2.10.0000.00818.19
8.2.00.0000.00717.99
8.1.310.0040.01116.44
8.1.300.0110.00320.08
8.1.290.0030.00630.84
8.1.280.0120.00625.92
8.1.270.0000.00922.02
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0040.00423.88
8.1.230.0110.00019.16
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0080.00318.34
8.1.160.0000.00720.77
8.1.150.0040.00418.77
8.1.140.0000.00917.51
8.1.130.0000.00717.70
8.1.120.0040.00417.52
8.1.110.0040.00417.45
8.1.100.0080.00017.53
8.1.90.0070.00017.41
8.1.80.0030.00317.45
8.1.70.0030.00317.44
8.1.60.0070.00317.64
8.1.50.0040.00417.50
8.1.40.0030.00617.55
8.1.30.0000.00817.56
8.1.20.0050.00317.51
8.1.10.0030.00617.55
8.1.00.0030.00717.47
8.0.300.0040.00418.77
8.0.290.0050.00316.75
8.0.280.0030.00318.38
8.0.270.0000.00716.78
8.0.260.0000.00617.25
8.0.250.0070.00017.05
8.0.240.0030.00317.00
8.0.230.0030.00317.00
8.0.220.0000.00716.91
8.0.210.0000.00816.84
8.0.200.0030.00316.98
8.0.190.0030.00617.04
8.0.180.0040.00416.92
8.0.170.0060.00316.99
8.0.160.0000.00716.84
8.0.150.0000.00816.86
8.0.140.0000.00716.88
8.0.130.0000.00513.40
8.0.120.0050.00316.82
8.0.110.0050.00316.79
8.0.100.0050.00316.80
8.0.90.0070.00016.84
8.0.80.0100.00416.98
8.0.70.0000.00716.90
8.0.60.0040.00416.97
8.0.50.0050.00216.94
8.0.30.0100.01017.30
8.0.20.0100.00917.40
8.0.10.0030.00617.07
8.0.00.0110.00716.92
7.4.330.0000.00516.69
7.4.320.0030.00316.60
7.4.300.0040.00416.51
7.4.290.0030.00316.50
7.4.280.0050.00516.49
7.4.270.0030.00616.51
7.4.260.0040.00416.65
7.4.250.0000.00716.48
7.4.240.0070.00016.45
7.4.230.0000.00816.71
7.4.220.0150.01216.46
7.4.210.0110.01016.54
7.4.200.0070.00016.60
7.4.160.0090.00616.44
7.4.150.0100.01017.40
7.4.140.0170.00817.86
7.4.130.0090.01216.63
7.4.120.0050.01216.65
7.4.110.0140.00316.69
7.4.100.0070.01016.40
7.4.90.0120.00616.53
7.4.80.0070.01519.39
7.4.70.0110.00516.67
7.4.60.0100.00716.43
7.4.50.0000.01616.43
7.4.40.0040.01216.50
7.4.30.0130.00416.53
7.4.00.0060.01114.92
7.3.330.0000.00613.30
7.3.320.0030.00313.21
7.3.310.0040.00416.26
7.3.300.0000.00716.25
7.3.290.0100.00616.31
7.3.280.0120.00716.30
7.3.270.0100.00717.40
7.3.260.0030.01716.42
7.3.250.0100.00916.31
7.3.240.0090.00816.45
7.3.230.0100.00716.53
7.3.210.0090.00916.54
7.3.200.0090.00916.64
7.3.190.0100.00716.49
7.3.180.0060.01016.21
7.3.170.0030.01316.49
7.3.160.0100.00716.55
7.3.120.0060.00915.02
7.3.110.0100.00314.51
7.3.100.0030.01014.90
7.3.90.0000.00914.77
7.3.80.0090.00015.13
7.3.70.0040.01114.77
7.3.60.0000.01414.88
7.3.50.0040.00414.86
7.3.40.0070.00714.61
7.3.30.0100.00314.79
7.3.20.0070.01016.63
7.3.10.0050.01016.35
7.3.00.0110.00516.26
7.2.330.0110.00716.68
7.2.320.0110.00816.64
7.2.310.0210.00316.50
7.2.300.0090.01016.57
7.2.290.0130.00716.49
7.2.250.0030.01014.99
7.2.240.0100.00614.88
7.2.230.0000.01414.99
7.2.220.0040.00715.14
7.2.210.0130.00315.17
7.2.200.0040.01215.00
7.2.190.0030.01115.08
7.2.180.0060.00915.17
7.2.170.0000.00915.00
7.2.130.0170.01016.32
7.2.120.0190.00416.24
7.2.110.0170.00716.40
7.2.100.0150.00416.48
7.2.90.0070.01016.30
7.2.80.0190.00616.39
7.2.70.0120.01216.22
7.2.60.0120.00616.63
7.2.50.0080.01116.13
7.2.40.0100.01616.35
7.2.30.0130.00716.26
7.2.20.0120.00916.35
7.2.10.0090.01316.34
7.2.00.0100.01017.97
7.1.330.0000.01315.85
7.1.320.0000.00915.94
7.1.310.0070.00315.85
7.1.300.0100.00615.78
7.1.290.0000.01515.68
7.1.280.0050.00315.89
7.1.270.0060.00315.73
7.1.260.0090.00315.80
7.1.250.0100.01315.31
7.1.200.0060.00715.76
7.1.100.0040.00817.88
7.1.70.0030.00717.22
7.1.60.0100.01019.27
7.1.50.0000.01117.01
7.1.00.0030.07722.44
7.0.200.0000.00916.42
7.0.60.0170.06021.82
7.0.50.0130.03717.90
7.0.40.0000.08720.21
7.0.30.0400.05020.16
7.0.20.0370.03719.99
7.0.10.0030.09020.21
7.0.00.0100.08020.12
5.6.280.0030.06020.98
5.6.210.0170.06320.69
5.6.200.0100.07718.22
5.6.190.0070.07320.57
5.6.180.0370.06320.79
5.6.170.0330.05020.61
5.6.160.0030.04720.50
5.6.150.0100.03318.16
5.6.140.0000.04318.20
5.6.130.0130.07018.20
5.6.120.0100.08720.98
5.6.110.0000.09020.98
5.6.100.0030.07720.98
5.6.90.0200.07721.09
5.6.80.0030.08020.37
5.5.350.0370.07020.44
5.5.340.0030.05318.02
5.5.330.0130.08320.21
5.5.320.0400.05020.20
5.5.310.0300.06020.20
5.5.300.0070.03317.87
5.5.290.0130.06718.02
5.5.280.0130.08020.86
5.5.270.0130.07320.87
5.5.260.0070.07720.88
5.5.250.0130.06320.49
5.5.240.0000.07720.26

preferences:
65.55 ms | 403 KiB | 5 Q