3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); class A { public function encodeUrlParam(string $string) { echo $string; } } class extendedA extends A { public function encodeUrlParam($string) { echo $string; } } $a = new extendedA(); $a->encodeUrlParam('test');

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.140.0090.01117.61
8.4.130.0110.00818.46
8.4.120.0090.01122.00
8.4.110.0110.00719.01
8.4.100.0060.00517.69
8.4.90.0140.00720.68
8.4.80.0100.01024.05
8.4.70.0060.00318.95
8.4.60.0050.00320.56
8.4.50.0130.00718.76
8.4.40.0060.01520.45
8.4.30.0040.00718.52
8.4.20.0170.00318.86
8.4.10.0060.00319.29
8.3.270.0140.00616.62
8.3.260.0150.00416.57
8.3.250.0100.01019.11
8.3.240.0100.01016.62
8.3.230.0050.00516.14
8.3.220.0100.00919.04
8.3.210.0100.00518.54
8.3.200.0040.00416.44
8.3.190.0110.00417.21
8.3.180.0080.01119.04
8.3.170.0100.01016.98
8.3.160.0190.00016.46
8.3.150.0040.01517.13
8.3.140.0040.00416.57
8.3.130.0050.00316.56
8.3.120.0070.00418.96
8.3.110.0030.00620.94
8.3.100.0000.01124.06
8.3.90.0070.01126.77
8.3.80.0070.00716.50
8.3.70.0110.00418.14
8.3.60.0000.01518.28
8.3.50.0140.00318.29
8.3.40.0040.01118.71
8.3.30.0120.00318.76
8.3.20.0050.00324.18
8.3.10.0000.00724.66
8.3.00.0000.00726.16
8.2.290.0070.00416.98
8.2.280.0100.00820.18
8.2.270.0000.01016.76
8.2.260.0070.01117.08
8.2.250.0110.00418.22
8.2.240.0090.00917.04
8.2.230.0000.00922.58
8.2.220.0130.01037.54
8.2.210.0150.00326.77
8.2.200.0070.01116.38
8.2.190.0040.01116.63
8.2.180.0180.00325.92
8.2.170.0070.00718.96
8.2.160.0030.01022.96
8.2.150.0100.00025.66
8.2.140.0040.00424.66
8.2.130.0030.00626.16
8.2.120.0080.00026.16
8.2.110.0060.00322.18
8.2.100.0120.00017.91
8.2.90.0030.00617.75
8.2.80.0120.00418.46
8.2.70.0080.00017.80
8.2.60.0000.00818.03
8.2.50.0030.00618.10
8.2.40.0050.00321.02
8.2.30.0050.00219.30
8.2.20.0040.00418.25
8.2.10.0000.00719.30
8.2.00.0070.00019.23
8.1.330.0140.00517.77
8.1.320.0080.01116.13
8.1.310.0060.00316.70
8.1.300.0070.00416.16
8.1.290.0080.00318.88
8.1.280.0060.00925.92
8.1.270.0030.00524.01
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0000.00822.13
8.1.230.0070.00417.82
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0040.00717.23
8.1.190.0060.00317.23
8.1.180.0030.00618.10
8.1.170.0000.00918.58
8.1.160.0040.00420.49
8.1.150.0050.00218.70
8.1.140.0030.00318.93
8.1.130.0030.00320.27
8.1.120.0040.00417.39
8.1.110.0000.00817.41
8.1.100.0000.00717.28
8.1.90.0070.00017.28
8.1.80.0030.00617.35
8.1.70.0030.00317.29
8.1.60.0080.00017.61
8.1.50.0000.00817.42
8.1.40.0030.00717.51
8.1.30.0050.00317.69
8.1.20.0030.00617.56
8.1.10.0050.00317.49
8.1.00.0070.00417.52
8.0.300.0070.00018.77
8.0.290.0080.00016.63
8.0.280.0040.00418.44
8.0.270.0030.00316.74
8.0.260.0000.00618.48
8.0.250.0000.00716.98
8.0.240.0000.00716.91
8.0.230.0050.00316.75
8.0.220.0030.00316.80
8.0.210.0050.00316.73
8.0.200.0030.00316.89
8.0.190.0040.00416.78
8.0.180.0070.00016.89
8.0.170.0000.00916.73
8.0.160.0050.00316.72
8.0.150.0080.00016.75
8.0.140.0040.00816.74
8.0.130.0060.00013.31
8.0.120.0060.00316.67
8.0.110.0000.00816.81
8.0.100.0000.00716.70
8.0.90.0040.00416.81
8.0.80.0080.00916.82
8.0.70.0070.01616.80
8.0.60.0060.01516.65
8.0.50.0170.00316.77
8.0.30.0060.01216.80
8.0.20.0130.00316.93
8.0.10.0090.00616.90
8.0.00.0060.00916.96
7.4.330.0000.00415.55
7.4.320.0030.00316.50
7.4.300.0060.00016.37
7.4.290.0030.00616.36
7.4.280.0040.00416.41
7.4.270.0030.00316.51
7.4.260.0050.00013.21
7.4.250.0030.00316.54
7.4.240.0030.00616.59
7.4.230.0040.00416.52
7.4.220.0030.00316.39
7.4.210.0080.01216.53
7.4.200.0100.01016.68
7.4.190.0040.01416.55
7.4.180.0060.00916.61
7.4.160.0090.00616.45
7.4.150.0070.01116.45
7.4.140.0140.00716.54
7.4.130.0160.00316.49
7.4.120.0070.01416.41
7.4.110.0120.00316.48
7.4.100.0100.01016.63
7.4.90.0090.00616.53
7.4.80.0090.00616.46
7.4.70.0110.00416.46
7.4.60.0160.00416.29
7.4.50.0070.00716.32
7.4.40.0040.01116.43
7.4.30.0000.01416.39
7.4.20.0050.01016.52
7.4.10.0110.01116.46
7.4.00.0100.01116.57
7.3.330.0090.00016.22
7.3.320.0060.00013.20
7.3.310.0040.00316.22
7.3.300.0060.00016.23
7.3.290.0100.01016.19
7.3.280.0070.01016.24
7.3.270.0070.01116.20
7.3.260.0030.01116.20
7.3.250.0060.01016.22
7.3.240.0000.01516.23
7.3.230.0110.00616.27
7.3.220.0040.01116.11
7.3.210.0110.00416.18
7.3.200.0090.00616.14
7.3.190.0090.00616.15
7.3.180.0070.01116.05
7.3.170.0070.00716.09
7.3.160.0040.01116.14
7.3.150.0000.01516.12
7.3.140.0090.00616.17
7.3.130.0000.01416.18
7.3.120.0070.00716.17
7.3.110.0000.01516.09
7.3.100.0050.01116.11
7.3.90.0100.00616.48
7.3.80.0090.01016.16
7.3.70.0060.00916.30
7.3.60.0130.00616.36
7.3.50.0120.00316.36
7.3.40.0120.00616.33
7.3.30.0060.00916.27
7.3.20.0170.00316.36
7.3.10.0160.00316.27
7.3.00.0090.01016.33

preferences:
31.74 ms | 403 KiB | 5 Q