3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { protected function example($param = null) { echo $param; } } example("string");

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.0110.00418.31
8.3.50.0110.01121.10
8.3.40.0090.00518.80
8.3.30.0070.00718.67
8.3.20.0070.00020.16
8.3.10.0080.00023.67
8.3.00.0000.00819.56
8.2.180.0090.00616.75
8.2.170.0110.00422.96
8.2.160.0070.00720.53
8.2.150.0080.00024.18
8.2.140.0030.00624.66
8.2.130.0080.00026.16
8.2.120.0060.00317.63
8.2.110.0060.00320.32
8.2.100.0030.00917.91
8.2.90.0000.00819.08
8.2.80.0080.00017.97
8.2.70.0000.00917.63
8.2.60.0030.00617.93
8.2.50.0000.00918.07
8.2.40.0000.00919.41
8.2.30.0000.00719.79
8.2.20.0060.00317.66
8.2.10.0000.00718.00
8.2.00.0040.00417.89
8.1.280.0090.00625.92
8.1.270.0090.00020.25
8.1.260.0000.00826.35
8.1.250.0030.00528.09
8.1.240.0090.00021.88
8.1.230.0040.00820.86
8.1.220.0060.00317.74
8.1.210.0050.00318.77
8.1.200.0060.00317.11
8.1.190.0050.00317.23
8.1.180.0040.00418.10
8.1.170.0040.00418.51
8.1.160.0040.00421.85
8.1.150.0040.00418.76
8.1.140.0000.00817.35
8.1.130.0000.00717.47
8.1.120.0030.00517.22
8.1.110.0070.00017.30
8.1.100.0070.00317.31
8.1.90.0040.00417.32
8.1.80.0040.00417.21
8.1.70.0040.00417.21
8.1.60.0040.00817.28
8.1.50.0000.00817.45
8.1.40.0000.00817.43
8.1.30.0040.00417.64
8.1.20.0050.00217.48
8.1.10.0000.00817.57
8.1.00.0000.00817.42
8.0.300.0040.00418.77
8.0.290.0030.00616.63
8.0.280.0000.00718.38
8.0.270.0040.00417.11
8.0.260.0060.00017.06
8.0.250.0080.00016.86
8.0.240.0030.00516.84
8.0.230.0060.00016.88
8.0.220.0000.00816.89
8.0.210.0040.00416.89
8.0.200.0030.00316.92
8.0.190.0000.00716.93
8.0.180.0000.00816.89
8.0.170.0040.00416.84
8.0.160.0040.00416.93
8.0.150.0000.00716.79
8.0.140.0040.00416.81
8.0.130.0040.00413.25
8.0.120.0000.00716.76
8.0.110.0080.00016.92
8.0.100.0040.00316.84
8.0.90.0040.00416.93
8.0.80.0090.00616.84
8.0.70.0040.00416.68
8.0.60.0070.00016.78
8.0.50.0000.00716.75
8.0.30.0040.01417.14
8.0.20.0130.00617.40
8.0.10.0000.00716.83
8.0.00.0110.00816.76
7.4.330.0000.00615.08
7.4.320.0060.00016.42
7.4.300.0050.00216.50
7.4.290.0000.00616.33
7.4.280.0040.00316.42
7.4.270.0070.00016.55
7.4.260.0000.00716.49
7.4.250.0000.00716.50
7.4.240.0020.00516.51
7.4.230.0030.00316.53
7.4.220.0150.00316.42
7.4.210.0150.00616.63
7.4.200.0070.00016.44
7.4.160.0090.00716.36
7.4.150.0120.00617.40
7.4.140.0100.01017.86
7.4.130.0160.00516.46
7.4.120.0050.01216.47
7.4.110.0090.01516.49
7.4.100.0090.01216.71
7.4.90.0060.01216.54
7.4.80.0090.00919.39
7.4.70.0040.01716.36
7.4.60.0110.00616.42
7.4.50.0000.00816.11
7.4.40.0090.01216.59
7.4.30.0150.00316.31
7.4.00.0130.00314.79
7.3.330.0060.00013.31
7.3.320.0000.00713.06
7.3.310.0000.00716.45
7.3.300.0040.00416.34
7.3.290.0090.00516.31
7.3.280.0100.00716.23
7.3.270.0050.01317.40
7.3.260.0100.01416.48
7.3.250.0100.00716.37
7.3.240.0090.01116.27
7.3.230.0090.01216.39
7.3.210.0100.01016.21
7.3.200.0090.00616.55
7.3.190.0130.00916.38
7.3.180.0240.01116.45
7.3.170.0070.01016.36
7.3.160.0110.00516.44
7.2.330.0110.00716.32
7.2.320.0060.01816.62
7.2.310.0060.01216.39
7.2.300.0090.00916.46
7.2.290.0100.00716.47
7.2.60.0080.00816.79
7.2.00.0070.00719.15
7.1.200.0040.01115.50
7.1.100.0000.01118.12
7.1.70.0100.00716.98
7.1.60.0110.01420.03
7.1.50.0040.01116.80
7.1.00.0100.07022.36
7.0.200.0070.00716.75
7.0.60.0070.03719.91
7.0.50.0100.07717.88
7.0.40.0130.07720.28
7.0.30.0170.04320.23
7.0.20.0300.07020.24
7.0.10.0130.07720.26
7.0.00.0030.09020.15
5.6.280.0000.07021.13
5.6.210.0070.07720.48
5.6.200.0070.06018.18
5.6.190.0070.04020.77
5.6.180.4100.03720.41
5.6.170.0230.03720.55
5.6.160.0030.08020.43
5.6.150.0100.06318.16
5.6.140.0070.08018.28
5.6.130.0100.07718.18
5.6.120.0030.09021.14
5.6.110.0100.06320.98
5.6.100.0170.07321.04
5.6.90.0100.08021.00
5.6.80.0100.06720.36
5.6.70.0530.03720.40
5.5.350.0230.06320.41
5.5.340.0030.03718.02
5.5.330.0070.04320.21
5.5.320.0330.07020.24
5.5.310.0170.05020.33
5.5.300.0030.04017.98
5.5.290.0070.05317.98
5.5.280.0070.06320.78
5.5.270.0000.04320.79
5.5.260.0030.08720.76
5.5.250.0000.04320.71
5.5.240.0230.04320.19
5.4.450.0270.05019.54
5.4.440.0100.06019.53
5.4.430.0170.05719.42
5.4.420.0130.05719.26
5.4.410.0100.05319.20
5.4.400.0070.05718.85
5.4.390.0230.04719.11
5.4.380.0300.05018.98
5.4.370.0400.04719.13
5.4.360.0570.04019.21
5.4.350.0500.04319.19
5.4.340.0200.05719.07
5.4.320.0100.05319.07
5.4.310.0170.04718.93
5.4.300.0330.05019.21
5.4.290.0170.04319.21
5.4.280.0300.05319.06
5.4.270.0200.04019.22
5.4.260.0100.05719.18
5.4.250.0130.05019.09
5.4.240.0130.05019.21
5.4.230.0230.06019.10
5.4.220.0000.06719.25
5.4.210.0370.05019.09
5.4.200.0370.05718.84
5.4.190.0330.05019.20
5.4.180.0130.05018.80
5.4.170.0230.04019.20
5.4.160.0030.06319.28
5.4.150.0130.05319.07
5.4.140.0100.05016.70
5.4.130.0100.04716.49
5.4.120.0330.06316.43
5.4.110.0130.04716.51
5.4.100.0130.04716.60
5.4.90.0130.04316.28
5.4.80.0100.04716.30
5.4.70.0200.06716.44
5.4.60.0330.04316.43
5.4.50.0030.07016.22
5.4.40.0030.06016.43
5.4.30.0070.07016.55
5.4.20.0270.03316.25

preferences:
44.65 ms | 401 KiB | 5 Q