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 bar(); $b->call_something($a); $method = new ReflectionMethod($a, 'do_something'); $method->invoke($b, true);

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.00816.50
8.3.50.0110.00718.09
8.3.40.0150.00418.63
8.3.30.0070.00718.55
8.3.20.0050.00320.33
8.3.10.0070.00021.90
8.3.00.0000.00819.85
8.2.180.0000.01518.55
8.2.170.0120.00622.96
8.2.160.0100.01020.43
8.2.150.0060.00924.18
8.2.140.0000.00724.66
8.2.130.0030.00621.00
8.2.120.0050.00326.35
8.2.110.0070.00321.13
8.2.100.0120.00317.93
8.2.90.0040.00419.17
8.2.80.0030.00517.97
8.2.70.0080.00017.63
8.2.60.0000.00817.93
8.2.50.0030.00618.07
8.2.40.0000.00822.34
8.2.30.0030.00320.53
8.2.20.0000.00717.51
8.2.10.0050.00217.90
8.2.00.0000.00718.01
8.1.270.0000.00820.32
8.1.260.0000.00728.09
8.1.250.0070.00028.09
8.1.240.0030.00619.34
8.1.230.0030.00820.99
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0030.00617.00
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0030.00618.65
8.1.160.0000.00720.80
8.1.150.0040.00418.84
8.1.140.0030.00519.43
8.1.130.0000.00717.64
8.1.120.0070.00017.31
8.1.110.0020.00517.41
8.1.100.0030.00517.43
8.1.90.0080.00017.36
8.1.80.0040.00417.40
8.1.70.0040.00417.36
8.1.60.0070.00017.60
8.1.50.0000.00817.50
8.1.40.0080.00017.55
8.1.30.0040.00417.68
8.1.20.0040.00417.57
8.1.10.0080.00017.60
8.1.00.0000.00717.52
8.0.300.0080.00018.77
8.0.290.0050.00216.75
8.0.280.0030.00318.36
8.0.270.0070.00017.25
8.0.260.0000.00617.16
8.0.250.0070.00016.88
8.0.240.0030.00317.03
8.0.230.0070.00316.98
8.0.220.0000.00716.75
8.0.210.0040.00416.86
8.0.200.0030.00316.88
8.0.190.0070.00416.95
8.0.180.0040.00416.80
8.0.170.0000.00716.93
8.0.160.0030.00316.88
8.0.150.0070.00016.79
8.0.140.0000.00716.87
8.0.130.0030.00313.37
8.0.120.0030.00516.88
8.0.110.0040.00416.85
8.0.100.0040.00416.93
8.0.90.0070.00016.89
8.0.80.0040.01116.85
8.0.70.0000.00816.86
8.0.60.0080.00016.88
8.0.50.0000.00716.91
8.0.30.0140.00616.99
8.0.20.0080.01017.40
8.0.10.0050.00216.98
8.0.00.0100.00716.76
7.4.330.0050.00016.69
7.4.320.0000.00616.45
7.4.300.0060.00016.43
7.4.290.0030.00316.47
7.4.280.0040.00416.48
7.4.270.0030.00316.53
7.4.260.0030.00316.63
7.4.250.0070.00016.57
7.4.240.0070.00016.50
7.4.230.0000.00716.49
7.4.220.0110.00716.63
7.4.210.0060.00916.56
7.4.200.0000.00816.48
7.4.160.0060.00916.58
7.4.150.0060.01117.40
7.4.140.0100.00817.86
7.4.130.0030.01716.63
7.4.120.0110.00616.55
7.4.110.0050.01316.54
7.4.100.0090.00916.37
7.4.90.0090.00916.55
7.4.80.0100.00719.39
7.4.70.0120.00416.50
7.4.60.0100.01016.38
7.4.50.0030.01316.56
7.4.40.0060.01016.51
7.4.30.0040.01416.63
7.4.10.0170.00015.15
7.4.00.0030.01215.01
7.3.330.0050.00013.33
7.3.320.0000.00513.29
7.3.310.0040.00416.26
7.3.300.0030.00316.32
7.3.290.0080.00816.35
7.3.280.0080.00916.33
7.3.270.0030.01417.40
7.3.260.0120.00616.31
7.3.240.0090.00816.41
7.3.230.0100.00716.41
7.3.210.0180.00416.43
7.3.200.0100.01016.39
7.3.190.0110.00616.44
7.3.180.0130.00316.41
7.3.170.0080.01416.44
7.3.160.0070.01016.38
7.3.130.0000.01914.69
7.3.120.0070.01114.91
7.3.110.0100.01014.88
7.3.100.0030.01314.56
7.3.90.0060.00914.69
7.3.80.0060.00915.16
7.3.70.0060.00914.61
7.3.60.0090.00614.86
7.3.50.0150.00414.89
7.3.40.0030.01014.75
7.3.30.0070.00714.90
7.3.20.0070.00716.71
7.3.10.0030.00816.77
7.3.00.0050.01016.34
7.2.330.0130.00416.54
7.2.320.0100.01016.31
7.2.310.0110.00916.70
7.2.300.0090.01316.71
7.2.290.0090.00916.68
7.2.260.0060.01315.12
7.2.250.0040.01214.88
7.2.240.0060.00715.24
7.2.230.0060.00614.91
7.2.220.0110.00615.20
7.2.210.0110.00714.92
7.2.200.0040.01215.00
7.2.190.0110.00715.18
7.2.180.0070.00714.82
7.2.170.0040.01115.13
7.2.160.0070.00714.99
7.2.150.0070.00916.62
7.2.140.0000.01516.67
7.2.130.0040.01016.72
7.2.120.0080.00516.90
7.2.110.0030.01116.88
7.2.100.0070.00516.89
7.2.90.0030.01316.77
7.2.80.0070.00716.91
7.2.70.0050.00916.91
7.2.60.0080.00316.87
7.2.50.0010.01116.95
7.2.40.0090.00716.94
7.2.30.0060.00916.95
7.2.20.0080.00616.97
7.2.10.0110.00516.85
7.2.00.0040.00917.63
7.1.330.0060.00615.82
7.1.320.0040.00915.52
7.1.310.0030.01015.59
7.1.300.0030.01015.62
7.1.290.0030.00615.70
7.1.280.0000.01515.43
7.1.270.0000.01215.71
7.1.260.0120.00015.68
7.1.250.0090.00515.75
7.1.240.0100.00715.62
7.1.230.0130.00015.67
7.1.220.0000.01315.80
7.1.210.0090.00615.75
7.1.200.0040.00715.64
7.1.190.0070.00715.54
7.1.180.0100.00015.34
7.1.170.0040.01115.71
7.1.160.0030.00915.79
7.1.150.0090.00615.90
7.1.140.0000.00815.70
7.1.130.0110.00315.85
7.1.120.0030.01215.86
7.1.110.0090.00615.49
7.1.100.0010.00916.95
7.1.90.0100.00315.83
7.1.80.0080.00615.71
7.1.70.0020.01016.37
7.1.60.0030.01517.47
7.1.50.0110.00616.20
7.1.40.0090.00015.87
7.1.30.0060.00815.78
7.1.20.0040.00415.79
7.1.10.0030.01215.86
7.1.00.0050.04319.17
7.0.330.0080.00615.39
7.0.320.0080.00615.20
7.0.310.0080.00415.04
7.0.300.0070.00715.55
7.0.290.0130.00315.19
7.0.280.0070.00715.57
7.0.270.0120.00015.55
7.0.260.0060.00615.02
7.0.250.0100.00615.42
7.0.240.0090.00315.37
7.0.230.0070.00715.38
7.0.220.0000.01115.12
7.0.210.0120.00015.38
7.0.200.0020.00816.21
7.0.190.0030.00615.58
7.0.180.0040.00715.44
7.0.170.0000.01215.08
7.0.160.0000.00815.52
7.0.150.0070.01015.52
7.0.140.0040.01215.50
7.0.130.0080.00415.49
7.0.120.0060.00915.36
7.0.110.0030.01315.44
7.0.100.0000.01315.22
7.0.90.0100.00715.18
7.0.80.0000.01315.32
7.0.70.0000.01715.48
7.0.60.0060.03917.68
7.0.50.0080.04516.66
7.0.40.0090.04316.86
7.0.30.0250.03016.72
7.0.20.0130.04916.82
7.0.10.0030.05016.82
7.0.00.0070.04816.75
5.6.400.0000.01414.45
5.6.390.0060.00814.27
5.6.380.0030.00914.13
5.6.370.0000.01614.27
5.6.360.0060.00914.26
5.6.350.0000.01214.19
5.6.340.0090.00614.29
5.6.330.0080.00014.45
5.6.320.0000.01014.13
5.6.310.0030.01014.03
5.6.300.0030.01314.25
5.6.290.0060.00914.32
5.6.280.0080.03517.58
5.6.270.0060.00614.26
5.6.260.0000.01414.20
5.6.250.0000.01914.30
5.6.240.0110.00714.04
5.6.230.0090.00614.29
5.6.220.0100.00714.46
5.6.210.0010.05217.38
5.6.200.0070.02816.41
5.6.190.0070.02817.34
5.6.180.0130.04317.40
5.6.170.0150.03017.39
5.6.160.0040.04417.39
5.6.150.0060.04116.15
5.6.140.0050.04016.19
5.6.130.0080.04316.27
5.6.120.0080.04517.81
5.6.110.0080.04717.57
5.6.100.0100.04617.63
5.6.90.0040.02117.54
5.6.80.0100.03417.30
5.6.70.0070.00714.39
5.6.60.0100.00314.20
5.6.50.0070.00714.36
5.6.40.0030.01014.32
5.6.30.0080.00414.46
5.6.20.0070.01014.30
5.6.10.0040.00414.09
5.6.00.0090.00314.27
5.5.380.0120.00014.14
5.5.370.0040.00814.33
5.5.360.0060.01214.10
5.5.350.0080.04317.22
5.5.340.0050.02515.96
5.5.330.0100.04417.22
5.5.320.0310.02417.16
5.5.310.0160.02117.42
5.5.300.0050.03016.01
5.5.290.0080.04116.13
5.5.280.0120.04017.64
5.5.270.0020.03917.71
5.5.260.0120.04017.42
5.5.250.0120.03217.35
5.5.240.1890.02517.25
5.5.230.0030.01314.20
5.5.220.0030.01014.08
5.5.210.0040.01114.17
5.5.200.0030.01013.99
5.5.190.0030.00714.22
5.5.180.0060.00914.27
5.5.170.0060.01214.03
5.5.160.0000.01714.12
5.5.150.0070.00714.33
5.5.140.0070.01014.16
5.5.130.0090.00614.38
5.5.120.0090.00614.02
5.5.110.0000.01214.14
5.5.100.0100.00314.22
5.5.90.0040.01114.26
5.5.80.0030.01014.30
5.5.70.0030.01314.23
5.5.60.0000.00813.90
5.5.50.0070.00413.98
5.5.40.0130.00314.23
5.5.30.0060.00613.93
5.5.20.0030.00914.25
5.5.10.0030.01014.23
5.5.00.0040.01114.12

preferences:
62.74 ms | 400 KiB | 5 Q