3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { private function do_something (bool $str) { echo "private function"; } public function call_something(foo $obj) { $obj->do_something(true); } } class bar extends foo { public function do_something (bool $value) { echo "subclass"; } } $a = new foo(); $b = new foo(); $b->call_something($a); $a = new bar(); $b = new bar(); $b->call_something($a);

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.0070.01016.63
8.3.50.0040.01118.27
8.3.40.0100.00718.60
8.3.30.0110.00418.75
8.3.20.0040.00420.38
8.3.10.0110.00321.85
8.3.00.0040.00419.85
8.2.180.0090.00918.17
8.2.170.0120.00622.96
8.2.160.0130.00720.39
8.2.150.0000.00824.18
8.2.140.0030.00624.66
8.2.130.0000.00726.16
8.2.120.0040.00420.95
8.2.110.0030.00621.06
8.2.100.0040.00717.91
8.2.90.0080.00017.75
8.2.80.0060.00319.77
8.2.70.0030.00618.04
8.2.60.0000.00817.93
8.2.50.0040.00418.10
8.2.40.0040.00420.42
8.2.30.0000.00820.64
8.2.20.0070.00017.55
8.2.10.0000.00718.10
8.2.00.0040.00418.05
8.1.280.0190.00325.92
8.1.270.0130.00320.18
8.1.260.0000.00926.35
8.1.250.0080.00028.09
8.1.240.0030.00722.44
8.1.230.0080.00420.97
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0060.00317.10
8.1.190.0030.00716.96
8.1.180.0080.00018.10
8.1.170.0000.01218.66
8.1.160.0050.00220.70
8.1.150.0040.00418.82
8.1.140.0000.00819.47
8.1.130.0000.00717.51
8.1.120.0030.00517.32
8.1.110.0050.00217.39
8.1.100.0050.00317.30
8.1.90.0000.00717.33
8.1.80.0030.00317.42
8.1.70.0000.00817.29
8.1.60.0000.00717.57
8.1.50.0000.00917.50
8.1.40.0050.00317.45
8.1.30.0050.00317.54
8.1.20.0000.00717.64
8.1.10.0070.00017.51
8.1.00.0040.00417.44
8.0.300.0000.00720.07
8.0.290.0040.00416.75
8.0.280.0030.00318.36
8.0.270.0080.00017.25
8.0.260.0060.00017.17
8.0.250.0030.00316.96
8.0.240.0070.00016.87
8.0.230.0080.00416.98
8.0.220.0030.00316.88
8.0.210.0020.00516.84
8.0.200.0000.00616.90
8.0.190.0040.00816.82
8.0.180.0000.00716.90
8.0.170.0000.00816.77
8.0.160.0080.00016.91
8.0.150.0040.00416.89
8.0.140.0050.00316.81
8.0.130.0030.00313.38
8.0.120.0040.00416.75
8.0.110.0070.00016.95
8.0.100.0040.00416.77
8.0.90.0000.00716.86
8.0.80.0070.01016.82
8.0.70.0000.00716.76
8.0.60.0040.00416.80
8.0.50.0040.00416.98
8.0.30.0140.00617.03
8.0.20.0120.00917.40
8.0.10.0040.00417.12
8.0.00.0090.00816.75
7.4.330.0020.00216.67
7.4.320.0040.00416.54
7.4.300.0030.00316.50
7.4.290.0080.00016.55
7.4.280.0050.00216.61
7.4.270.0050.00516.61
7.4.260.0030.00316.58
7.4.250.0040.00416.56
7.4.240.0000.00716.42
7.4.230.0020.00516.50
7.4.220.0110.00616.60
7.4.210.0090.00716.71
7.4.200.0070.00016.58
7.4.160.0160.00016.41
7.4.150.0000.01717.40
7.4.140.0080.01317.86
7.4.130.0180.00016.48
7.4.120.0110.00716.45
7.4.110.0060.01216.31
7.4.100.0070.01016.42
7.4.90.0060.01216.47
7.4.80.0060.01519.39
7.4.70.0080.00816.44
7.4.60.0100.00716.44
7.4.50.0000.01616.34
7.4.40.0090.00916.27
7.4.30.0120.00616.22
7.4.00.0050.01214.88
7.3.330.0000.00613.20
7.3.320.0050.00013.10
7.3.310.0060.00016.34
7.3.300.0040.00416.09
7.3.290.0100.00516.21
7.3.280.0110.00516.23
7.3.270.0140.00317.40
7.3.260.0130.00416.32
7.3.240.0150.00416.54
7.3.230.0070.01016.39
7.3.210.0150.00316.24
7.3.200.0090.01516.26
7.3.190.0070.01016.32
7.3.180.0040.01816.10
7.3.170.0160.00616.39
7.3.160.0040.01116.42
7.3.120.0080.00914.67
7.3.110.0130.00414.90
7.3.100.0090.00514.72
7.3.90.0080.00714.59
7.3.80.0050.00614.79
7.3.70.0070.00614.63
7.3.60.0030.01014.68
7.3.50.0040.00714.72
7.3.40.0060.00314.64
7.3.30.0050.00714.56
7.3.20.0030.00916.38
7.3.10.0120.00316.56
7.3.00.0020.01616.48
7.2.330.0040.01716.63
7.2.320.0100.01416.74
7.2.310.0120.00816.40
7.2.300.0060.01116.26
7.2.290.0100.00616.74
7.2.250.0030.01615.18
7.2.240.0090.00915.03
7.2.230.0100.00715.12
7.2.220.0070.00814.77
7.2.210.0090.00714.68
7.2.200.0050.00914.95
7.2.190.0110.00315.01
7.2.180.0040.00614.92
7.2.170.0050.00814.93
7.2.160.0030.01314.95
7.2.150.0050.00716.64
7.2.140.0090.00616.74
7.2.130.0050.00816.75
7.2.120.0060.01116.87
7.2.110.0070.00816.81
7.2.100.0050.01116.85
7.2.90.0110.00016.67
7.2.80.0030.00916.96
7.2.70.0080.00516.89
7.2.60.0050.00516.65
7.2.50.0050.00916.83
7.2.40.0070.01016.77
7.2.30.0050.00916.78
7.2.20.0050.00916.86
7.2.10.0050.00516.78
7.2.00.0070.00817.52
7.1.330.0110.00715.55
7.1.320.0050.01015.79
7.1.310.0100.00315.66
7.1.300.0100.00415.71
7.1.290.0030.00815.46
7.1.280.0040.00615.74
7.1.270.0020.01315.66
7.1.260.0040.01215.66
7.1.250.0110.00515.61
7.1.240.0040.01215.57
7.1.230.0060.00615.63
7.1.220.0030.00615.73
7.1.210.0060.00915.67
7.1.200.0050.00615.69
7.1.190.0100.00315.56
7.1.180.0050.00315.61
7.1.170.0100.00315.84
7.1.160.0120.00315.63
7.1.150.0040.00415.59
7.1.140.0110.00415.57
7.1.130.0030.00915.46
7.1.120.0040.00415.74
7.1.110.0030.01015.77
7.1.100.0030.01016.74
7.1.90.0100.00315.71
7.1.80.0030.00715.70
7.1.70.0030.00516.43
7.1.60.0100.00717.49
7.1.50.0090.00916.03
7.1.40.0060.00615.53
7.1.30.0120.00015.47
7.1.20.0030.00715.57
7.1.10.0000.01515.54
7.1.00.0090.03618.96
7.0.330.0000.01215.23
7.0.320.0110.00014.96
7.0.310.0100.00015.28
7.0.300.0070.00715.02
7.0.290.0100.00715.07
7.0.280.0100.00315.28
7.0.270.0090.00615.12
7.0.260.0090.00315.29
7.0.250.0000.01015.25
7.0.240.0030.00915.51
7.0.230.0000.01314.88
7.0.220.0060.00615.30
7.0.210.0080.00415.38
7.0.200.0070.00516.01
7.0.190.0030.00615.34
7.0.180.0030.00915.45
7.0.170.0040.01115.21
7.0.160.0030.01015.30
7.0.150.0000.01115.30
7.0.140.0060.00915.25
7.0.130.0080.00515.26
7.0.120.0070.00715.03
7.0.110.0080.00015.29
7.0.100.0000.01015.46
7.0.90.0060.00615.48
7.0.80.0090.00615.41
7.0.70.0100.00715.29
7.0.60.0090.02717.59
7.0.50.0080.03816.51
7.0.40.0100.02316.87
7.0.30.0170.02716.87
7.0.20.0150.03116.67
7.0.10.0070.04616.70
7.0.00.0040.03716.81
5.6.400.0060.00914.09
5.6.390.0110.00314.29
5.6.380.0100.00314.28
5.6.370.0060.00614.04
5.6.360.0110.00714.43
5.6.350.0080.00613.88
5.6.340.0000.01314.43
5.6.330.0030.01214.38
5.6.320.0080.00814.42
5.6.310.0060.00614.13
5.6.300.0030.00714.30
5.6.290.0080.00414.35
5.6.280.0050.03317.68
5.6.270.0030.00614.17
5.6.260.0060.00614.08
5.6.250.0040.01114.29
5.6.240.0060.00614.15
5.6.230.0070.01014.37
5.6.220.0060.00913.91
5.6.210.0050.04017.36
5.6.200.0080.04516.36
5.6.190.0080.04517.45
5.6.180.0120.04017.26
5.6.170.0160.03517.40
5.6.160.0060.03817.36
5.6.150.0020.02616.20
5.6.140.0050.04216.11
5.6.130.0030.03116.05
5.6.120.0120.03917.78
5.6.110.0080.04117.63
5.6.100.0100.04517.64
5.6.90.0070.02517.61
5.6.80.0110.04017.21
5.6.70.0070.01014.39
5.6.60.0090.00613.96
5.6.50.0090.00614.00
5.6.40.0070.00714.24
5.6.30.0040.00714.21
5.6.20.0000.01214.14
5.6.10.0100.00314.23
5.6.00.0000.00814.24
5.5.380.0000.01413.98
5.5.370.0040.01313.96
5.5.360.0080.00413.80
5.5.350.0150.03317.28
5.5.340.0040.02316.06
5.5.330.0030.02917.28
5.5.320.0300.04017.18
5.5.310.0180.03817.26
5.5.300.0030.04016.13
5.5.290.0070.04116.03
5.5.280.0060.04717.72
5.5.270.0030.04217.42
5.5.260.0080.04517.62
5.5.250.0100.03817.18
5.5.240.1520.01816.89
5.5.230.0000.01813.97
5.5.220.0070.01014.19
5.5.210.0100.00313.74
5.5.200.0040.01813.90
5.5.190.0070.00713.85
5.5.180.0140.00414.04
5.5.170.0000.01714.08
5.5.160.0030.01614.18
5.5.150.0050.01113.80
5.5.140.0070.01313.69
5.5.130.0140.00213.95
5.5.120.0000.01813.95
5.5.110.0170.00313.89
5.5.100.0120.00613.98
5.5.90.0060.01214.07
5.5.80.0110.00714.00
5.5.70.0040.01613.80
5.5.60.0040.01113.58
5.5.50.0000.01413.73
5.5.40.0030.01013.91
5.5.30.0060.00313.91
5.5.20.0090.00314.13
5.5.10.0060.00613.82
5.5.00.0060.00914.16

preferences:
65.54 ms | 400 KiB | 5 Q