3v4l.org

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

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.0160.00517.54
8.4.130.0090.01117.70
8.4.120.0090.01020.64
8.4.110.0090.01322.58
8.4.100.0150.00617.57
8.4.90.0110.00818.67
8.4.80.0070.00117.88
8.4.70.0120.00417.79
8.4.60.0080.00418.72
8.4.50.0070.00517.63
8.4.40.0130.00319.35
8.4.30.0130.00620.36
8.4.20.0080.00820.83
8.4.10.0030.00619.70
8.3.270.0160.00916.45
8.3.260.0020.00716.64
8.3.250.0130.00618.49
8.3.240.0090.01016.50
8.3.230.0100.00916.42
8.3.220.0140.00416.98
8.3.210.0060.00116.72
8.3.200.0040.00416.57
8.3.190.0080.01017.05
8.3.180.0120.00816.25
8.3.170.0120.00619.00
8.3.160.0100.01018.36
8.3.150.0040.01118.73
8.3.140.0110.00018.48
8.3.130.0100.00016.62
8.3.120.0050.00520.60
8.3.110.0040.00416.60
8.3.100.0040.00416.48
8.3.90.0090.00926.77
8.3.80.0060.00616.36
8.3.70.0090.00616.58
8.3.60.0150.00616.50
8.3.50.0120.00316.29
8.3.40.0110.00318.42
8.3.30.0110.00418.45
8.3.20.0030.00524.18
8.3.10.0030.00624.66
8.3.00.0040.00426.16
8.2.290.0120.00820.45
8.2.280.0040.00518.47
8.2.270.0130.00717.10
8.2.260.0080.00016.36
8.2.250.0080.00018.41
8.2.240.0000.00916.46
8.2.230.0080.00020.94
8.2.220.0060.01024.06
8.2.210.0050.00526.77
8.2.200.0070.00316.63
8.2.190.0090.00916.63
8.2.180.0060.00925.92
8.2.170.0150.00022.96
8.2.160.0100.00722.96
8.2.150.0000.00725.66
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0080.00026.16
8.2.110.0030.00622.04
8.2.100.0040.00817.78
8.2.90.0040.00418.34
8.2.80.0000.00818.77
8.2.70.0000.00817.38
8.2.60.0000.01017.80
8.2.50.0040.00418.07
8.2.40.0050.00218.34
8.2.30.0000.00717.93
8.2.20.0040.00417.92
8.2.10.0040.00419.27
8.2.00.0060.00319.29
8.1.330.0070.00323.79
8.1.320.0110.00917.82
8.1.310.0000.00816.49
8.1.300.0030.01218.69
8.1.290.0030.00630.84
8.1.280.0080.00625.92
8.1.270.0040.00423.99
8.1.260.0000.00726.35
8.1.250.0030.00528.09
8.1.240.0040.00423.79
8.1.230.0120.00019.23
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0000.00917.13
8.1.190.0090.00017.10
8.1.180.0000.00818.10
8.1.170.0050.00518.58
8.1.160.0040.00418.73
8.1.150.0070.00018.81
8.1.140.0040.00418.79
8.1.130.0000.00720.23
8.1.120.0070.00017.37
8.1.110.0000.00717.26
8.1.100.0040.00317.39
8.1.90.0040.00417.27
8.1.80.0090.00017.27
8.1.70.0000.00717.43
8.1.60.0030.00617.57
8.1.50.0040.00417.41
8.1.40.0040.00417.46
8.1.30.0050.00317.62
8.1.20.0040.00417.54
8.1.10.0050.00317.57
8.1.00.0000.00717.39
8.0.300.0000.00718.77
8.0.290.0070.00016.75
8.0.280.0030.00318.38
8.0.270.0030.00317.99
8.0.260.0050.00218.43
8.0.250.0000.00916.84
8.0.240.0040.00416.94
8.0.230.0000.00816.87
8.0.220.0000.00716.78
8.0.210.0000.00816.81
8.0.200.0040.00416.85
8.0.190.0030.00516.92
8.0.180.0000.00816.83
8.0.170.0000.00816.86
8.0.160.0030.00616.83
8.0.150.0030.00316.77
8.0.140.0070.00016.78
8.0.130.0030.00313.21
8.0.120.0040.00416.74
8.0.110.0040.00416.61
8.0.100.0040.00416.79
8.0.90.0020.00616.62
8.0.80.0060.00216.69
8.0.70.0060.00216.74
8.0.60.0000.00716.85
8.0.50.0050.00216.70
8.0.30.0070.00016.83
8.0.20.0070.00016.81
8.0.10.0040.00416.78
8.0.00.0000.00716.89
7.4.330.0000.00515.55
7.4.320.0070.00016.41
7.4.300.0030.00316.59
7.4.290.0000.00716.50
7.4.280.0070.00016.39
7.4.270.0000.00716.39
7.4.260.0050.00013.16
7.4.250.0030.00316.50
7.4.240.0000.00716.60
7.4.230.0030.00316.49
7.4.220.0020.00516.50
7.4.210.0030.00416.51
7.4.200.0030.00316.64
7.4.190.0030.00416.51
7.4.180.0030.00316.67
7.4.160.0030.00316.46
7.4.150.0040.00316.41
7.4.140.0070.00016.51
7.4.130.0020.00516.37
7.4.120.0020.00516.49
7.4.110.0000.00716.42
7.4.100.0020.00516.63
7.4.90.0040.00416.40
7.4.80.0030.00516.39
7.4.70.0020.00516.41
7.4.60.0020.00516.53
7.4.50.0070.00016.41
7.4.40.0070.00016.40
7.4.30.0050.00216.55
7.4.20.0050.00216.58
7.4.10.0000.00716.48
7.4.00.0030.00316.35
7.3.330.0000.00816.12
7.3.320.0050.00013.07
7.3.310.0050.00216.27
7.3.300.0050.00216.23
7.3.290.0020.00516.14
7.3.280.0030.00316.19
7.3.270.0030.00316.15
7.3.260.0020.00516.24
7.3.250.0020.00516.15
7.3.240.0070.00016.20
7.3.230.0050.00216.16
7.3.220.0020.00616.09
7.3.210.0040.00316.14
7.3.200.0020.00516.18
7.3.190.0020.00516.11
7.3.180.0040.00315.98
7.3.170.0050.00216.06
7.3.160.0010.00616.09
7.3.150.0070.00016.12
7.3.140.0000.00716.09
7.3.130.0040.00316.15
7.3.120.0000.00716.20
7.3.110.0040.00316.10
7.3.100.0050.00216.01
7.3.90.0010.00616.49
7.3.80.0030.00416.10
7.3.70.0020.00616.31
7.3.60.0000.00716.30
7.3.50.0020.00516.36
7.3.40.0040.00416.22
7.3.30.0070.00016.23
7.3.20.0070.00017.24
7.3.10.0040.00417.11
7.3.00.0020.00918.01

preferences:
28.29 ms | 403 KiB | 5 Q