3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Thing { private function privateMethod() { echo "called\n"; } public function callOtherThingsPrivateMethod(Thing $thing) { $thing->privateMethod(); } } $a = new Thing; $b = new Thing; $a->callOtherThingsPrivateMethod($b);

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.0100.00718.43
8.3.50.0120.00522.05
8.3.40.0110.00418.70
8.3.30.0130.00719.15
8.3.20.0000.00720.39
8.3.10.0120.00623.51
8.3.00.0040.00418.04
8.2.180.0070.00716.63
8.2.170.0150.00022.96
8.2.160.0150.00320.26
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00421.02
8.2.110.0110.00020.99
8.2.100.0040.00817.72
8.2.90.0050.00317.97
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0040.00417.80
8.2.50.0000.00818.07
8.2.40.0000.00818.34
8.2.30.0090.00018.25
8.2.20.0000.00817.59
8.2.10.0050.00318.05
8.2.00.0000.00717.61
8.1.280.0120.00325.92
8.1.270.0080.00024.00
8.1.260.0050.00326.35
8.1.250.0000.00828.09
8.1.240.0000.00822.54
8.1.230.0110.00021.00
8.1.220.0050.00317.74
8.1.210.0000.00818.85
8.1.200.0040.00717.35
8.1.190.0060.00317.10
8.1.180.0030.00518.10
8.1.170.0000.00918.43
8.1.160.0040.00421.89
8.1.150.0000.00718.77
8.1.140.0070.00017.34
8.1.130.0070.00017.72
8.1.120.0040.00417.37
8.1.110.0080.00017.38
8.1.100.0060.00317.41
8.1.90.0040.00417.39
8.1.80.0000.00717.38
8.1.70.0070.00017.35
8.1.60.0040.00417.56
8.1.50.0060.00317.55
8.1.40.0040.00417.51
8.1.30.0000.00817.49
8.1.20.0040.00417.49
8.1.10.0050.00217.50
8.1.00.0040.00417.49
8.0.300.0030.00319.90
8.0.290.0040.00416.75
8.0.280.0070.00018.39
8.0.270.0000.00817.12
8.0.260.0070.00017.18
8.0.250.0070.00016.95
8.0.240.0090.00016.88
8.0.230.0070.00016.86
8.0.220.0030.00316.80
8.0.210.0050.00316.90
8.0.200.0060.00017.00
8.0.190.0070.00016.97
8.0.180.0040.00416.92
8.0.170.0020.00516.90
8.0.160.0030.00316.89
8.0.150.0070.00016.80
8.0.140.0000.00716.78
8.0.130.0060.00013.36
8.0.120.0000.00716.75
8.0.110.0040.00416.79
8.0.100.0030.00616.88
8.0.90.0070.00016.90
8.0.80.0060.00916.80
8.0.70.0020.00516.89
8.0.60.0040.00416.68
8.0.50.0070.00016.88
8.0.30.0110.01116.95
8.0.20.0080.01517.40
8.0.10.0080.00017.01
8.0.00.0080.01116.88
7.4.330.0030.00315.07
7.4.320.0060.00016.45
7.4.300.0000.00716.51
7.4.290.0040.00416.63
7.4.280.0050.00316.51
7.4.270.0030.00316.52
7.4.260.0060.00316.55
7.4.250.0040.00416.54
7.4.240.0060.00116.49
7.4.230.0040.00416.60
7.4.220.0160.01016.61
7.4.210.0100.00316.63
7.4.200.0040.00416.68
7.4.160.0080.00816.54
7.4.150.0130.00317.40
7.4.140.0080.00817.86
7.4.130.0070.01016.40
7.4.120.0090.01216.51
7.4.110.0060.01616.38
7.4.100.0090.01016.25
7.4.90.0080.00816.64
7.4.80.0080.01419.39
7.4.70.0070.01016.46
7.4.60.0180.00616.48
7.4.50.0080.00016.42
7.4.40.0000.01516.55
7.4.30.0120.00316.55
7.4.00.0130.00014.95
7.3.330.0030.00313.02
7.3.320.0060.00013.10
7.3.310.0070.00016.09
7.3.300.0000.00716.07
7.3.290.0140.00016.26
7.3.280.0120.00716.21
7.3.270.0130.01317.40
7.3.260.0140.01016.23
7.3.250.0090.00916.36
7.3.240.0110.00716.22
7.3.230.0100.00716.39
7.3.210.0090.01316.25
7.3.200.0030.01419.39
7.3.190.0090.01216.28
7.3.180.0090.00616.57
7.3.170.0100.00616.51
7.3.160.0210.00016.44
7.3.120.0030.01014.55
7.3.10.0060.00816.59
7.3.00.0070.00716.76
7.2.330.0180.00416.83
7.2.320.0130.01016.56
7.2.310.0060.01216.48
7.2.300.0110.01116.36
7.2.290.0080.00816.40
7.2.130.0090.00316.98
7.2.120.0060.00916.56
7.2.110.0040.00816.52
7.2.100.0110.00416.94
7.2.90.0000.01816.96
7.2.80.0090.00616.67
7.2.70.0060.00316.93
7.2.60.0080.00616.84
7.2.50.0000.01416.67
7.2.40.0040.00716.81
7.2.30.0040.01116.56
7.2.20.0040.00716.79
7.2.10.0030.00716.57
7.2.00.0080.00618.07
7.1.250.0000.01015.43
7.1.200.0000.01115.52
7.1.100.0060.00618.21
7.1.70.0060.00317.03
7.1.60.0160.00719.70
7.1.50.0100.01316.78
7.1.00.0030.07322.37
7.0.200.0050.00316.91
7.0.140.0130.06722.01
7.0.60.0030.08020.03
7.0.50.0100.04017.87
7.0.40.0100.07020.24
7.0.30.0370.06020.20
7.0.20.0300.05020.10
7.0.10.0000.06320.23
7.0.00.0130.07720.32
5.6.280.0000.09320.86
5.6.210.0200.06720.75
5.6.200.0100.08018.19
5.6.190.0100.06720.67
5.6.180.0230.03320.48
5.6.170.0300.03720.54
5.6.160.0130.05020.54
5.6.150.0100.07718.15
5.6.140.0070.04318.27
5.6.130.0100.08018.15
5.6.120.0130.07720.99
5.6.110.0100.07321.13
5.6.100.0070.08321.14
5.6.90.0130.07020.93
5.6.80.0170.07020.39
5.5.350.0370.07320.30
5.5.340.0070.03718.01
5.5.330.0000.04320.40
5.5.320.0170.04720.38
5.5.310.0270.03720.36
5.5.300.0030.04318.08
5.5.290.0030.04718.02
5.5.280.0130.07320.96
5.5.270.0130.07320.76
5.5.260.0100.07720.84
5.5.250.0000.08720.78
5.5.240.0030.07320.19
5.4.450.1530.03719.57
5.4.440.1530.03719.63
5.4.430.1730.04319.54
5.4.420.1530.03719.41
5.4.410.1800.04019.34
5.4.400.1770.04719.09
5.4.390.1830.04018.87
5.4.380.1630.04019.20
5.4.370.1830.03719.06
5.4.360.1630.04318.87
5.4.350.1670.03319.08
5.4.340.1770.04319.00
5.4.320.1730.04319.26
5.4.310.1530.03719.20
5.4.300.1730.04719.09
5.4.290.1400.04719.20
5.4.280.0070.04319.14
5.4.270.0030.06319.13
5.4.260.0730.05019.13
5.4.250.1730.04718.83
5.4.240.1670.04019.17
5.4.230.1570.03719.21
5.4.220.1770.04319.13
5.4.210.1630.04019.21
5.4.200.1900.05018.88
5.4.190.1770.04319.23
5.4.180.1670.04019.18
5.4.170.1770.04319.23
5.4.160.1770.04019.11
5.4.150.1730.04319.04
5.4.140.1570.03716.48
5.4.130.1530.03716.47
5.4.120.1630.03316.33
5.4.110.1670.02716.28
5.4.100.1630.04716.58
5.4.90.1530.03716.56
5.4.80.1400.04716.57
5.4.70.0000.03716.57
5.4.60.0000.03716.23
5.4.50.1170.05016.22
5.4.40.1730.04316.43
5.4.30.1570.03716.43
5.4.20.1570.03716.48
5.4.10.1670.04016.32
5.4.00.1600.03015.77
5.3.290.1570.04014.89
5.3.280.1700.04014.60
5.3.270.1670.04014.69
5.3.260.1930.05014.62
5.3.250.1670.03014.50
5.3.240.1570.04314.75
5.3.230.0030.04714.59
5.3.220.0030.04714.68
5.3.210.1030.04714.66
5.3.200.1730.03714.79
5.3.190.1700.03714.58
5.3.180.1630.04014.57
5.3.170.1870.04314.58
5.3.160.1730.03714.58
5.3.150.1530.03314.55
5.3.140.1800.04714.55
5.3.130.1700.04314.72
5.3.120.1470.04014.62
5.3.110.1800.04314.55
5.3.100.1370.04314.04
5.3.90.0100.06714.09
5.3.80.0070.06714.08
5.3.70.1130.05014.04
5.3.60.1470.04014.06
5.3.50.1730.04313.92
5.3.40.1870.04014.10
5.3.30.1800.04013.96
5.3.20.1870.03013.60
5.3.10.1730.04013.74
5.3.00.1670.04013.73
5.2.170.1500.04011.30
5.2.160.1530.03311.16
5.2.150.1470.04011.06
5.2.140.1530.03711.06
5.2.130.1530.03711.19
5.2.120.1230.03011.12
5.2.110.1570.03311.33
5.2.100.1370.02711.01
5.2.90.1470.03311.32
5.2.80.1330.03011.01
5.2.70.1470.04011.17
5.2.60.1200.03310.97
5.2.50.1600.03011.03
5.2.40.1230.03711.14
5.2.30.1230.04010.88
5.2.20.1000.03010.93
5.2.10.0970.03310.87
5.2.00.1270.03310.72
5.1.60.0800.02710.05
5.1.50.0000.0579.98
5.1.40.0030.0279.99
5.1.30.0030.06010.34
5.1.20.0000.02710.28
5.1.10.0000.05310.05
5.1.00.1070.02710.16
5.0.50.0670.0308.64
5.0.40.0530.0208.32
5.0.30.0670.0508.23
5.0.20.0530.0178.35
5.0.10.0730.0308.16
5.0.00.0570.0278.17
4.4.90.0500.0178.15
4.4.80.0670.0278.15
4.4.70.0500.0178.15
4.4.60.0600.0208.15
4.4.50.0630.0208.15
4.4.40.0600.0308.15
4.4.30.0670.0178.15
4.4.20.0670.0178.15
4.4.10.0730.0208.15
4.4.00.0570.0238.15
4.3.110.0600.0208.15
4.3.100.0500.0208.15
4.3.90.0670.0178.15
4.3.80.0500.0278.15
4.3.70.0500.0178.15
4.3.60.0030.0138.15
4.3.50.0030.0378.15
4.3.40.0030.0238.15
4.3.30.0000.0178.15
4.3.20.0030.0338.15
4.3.10.0030.0138.15
4.3.00.0030.0238.15

preferences:
43.76 ms | 401 KiB | 5 Q