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) { call_user_func([$obj, 'do_something'], true); } } class bar extends foo { public function do_something (string $value) { echo "subclass"; } } $a = new foo(); $b = new bar(); $a->call_something($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.0140.00416.50
8.3.50.0080.01022.05
8.3.40.0120.00618.82
8.3.30.0070.00718.83
8.3.20.0040.00420.16
8.3.10.0040.00421.76
8.3.00.0080.00019.66
8.2.180.0130.00616.63
8.2.170.0130.00622.96
8.2.160.0080.00520.39
8.2.150.0000.00924.18
8.2.140.0040.00424.66
8.2.130.0000.00819.39
8.2.120.0040.00426.35
8.2.110.0040.00422.31
8.2.100.0150.00417.68
8.2.90.0040.00419.17
8.2.80.0080.00017.97
8.2.70.0030.00617.50
8.2.60.0000.00818.05
8.2.50.0080.00018.07
8.2.40.0040.00422.38
8.2.30.0040.00420.61
8.2.20.0040.00417.63
8.2.10.0040.00418.11
8.2.00.0020.00517.97
8.1.280.0130.00725.92
8.1.270.0050.00320.43
8.1.260.0060.00328.09
8.1.250.0030.00328.09
8.1.240.0060.00323.88
8.1.230.0080.00419.48
8.1.220.0080.00017.74
8.1.210.0000.00918.77
8.1.200.0030.00617.23
8.1.190.0000.00817.35
8.1.180.0070.00018.10
8.1.170.0060.00318.57
8.1.160.0040.00420.63
8.1.150.0000.00718.88
8.1.140.0040.00419.56
8.1.130.0030.00317.61
8.1.120.0000.00817.47
8.1.110.0040.00417.45
8.1.100.0040.00417.34
8.1.90.0040.00417.40
8.1.80.0000.00817.34
8.1.70.0030.00517.23
8.1.60.0030.00517.56
8.1.50.0080.00017.50
8.1.40.0000.00717.46
8.1.30.0000.00817.56
8.1.20.0000.00817.53
8.1.10.0070.00017.61
8.1.00.0070.00017.52
8.0.300.0070.00018.77
8.0.290.0030.00516.75
8.0.280.0030.00518.43
8.0.270.0030.00317.12
8.0.260.0000.00617.12
8.0.250.0000.00717.05
8.0.240.0070.00017.01
8.0.230.0060.00317.00
8.0.220.0000.00717.00
8.0.210.0070.00016.98
8.0.200.0060.00017.02
8.0.190.0070.00416.99
8.0.180.0040.00416.98
8.0.170.0040.00416.93
8.0.160.0050.00316.98
8.0.150.0030.00316.92
8.0.140.0040.00416.91
8.0.130.0000.00513.41
8.0.120.0030.00516.78
8.0.110.0040.00416.97
8.0.100.0030.00516.96
8.0.90.0040.00416.86
8.0.80.0120.00616.88
8.0.70.0050.00216.80
8.0.60.0040.00416.95
8.0.50.0040.00416.81
8.0.30.0100.01017.20
8.0.20.0100.00817.40
8.0.10.0040.00417.02
8.0.00.0100.00916.78
7.4.330.0000.00616.74
7.4.320.0030.00316.60
7.4.300.0030.00316.50
7.4.290.0000.00616.61
7.4.280.0000.00816.55
7.4.270.0030.00316.61
7.4.260.0020.00516.45
7.4.250.0030.00316.55
7.4.240.0060.00216.55
7.4.230.0070.00016.58
7.4.220.0120.00616.34
7.4.210.0120.00316.59
7.4.200.0000.00716.30
7.4.160.0070.00716.44
7.4.150.0060.01117.40
7.4.140.0110.01217.86
7.4.130.0060.01216.62
7.4.120.0100.01116.47
7.4.110.0070.01016.55
7.4.100.0140.00416.55
7.4.90.0170.00016.56
7.4.80.0090.01219.39
7.4.70.0070.01416.35
7.4.60.0110.00516.48
7.4.50.0030.01216.46
7.4.40.0120.00816.43
7.4.30.0090.00916.66
7.4.00.0070.01115.13
7.3.330.0030.00313.22
7.3.320.0050.00013.24
7.3.310.0040.00416.35
7.3.300.0000.00716.25
7.3.290.0090.00716.27
7.3.280.0100.00816.29
7.3.270.0100.01017.40
7.3.260.0060.01716.42
7.3.240.0090.00716.29
7.3.230.0080.00816.39
7.3.210.0030.01316.27
7.3.200.0090.00916.26
7.3.190.0060.01516.27
7.3.180.0060.01316.29
7.3.170.0090.01216.32
7.3.160.0130.00316.53
7.3.120.0070.01014.46
7.3.110.0060.01214.80
7.3.100.0090.00914.90
7.3.90.0030.01014.95
7.3.80.0040.00715.15
7.3.70.0090.00614.55
7.3.60.0090.00014.65
7.3.50.0090.00614.80
7.3.40.0100.00714.87
7.3.30.0070.00414.77
7.3.20.0030.01316.82
7.3.10.0060.00616.75
7.3.00.0000.01316.63
7.2.330.0160.00316.75
7.2.320.0140.00416.84
7.2.310.0070.01016.78
7.2.300.0030.01316.70
7.2.290.0080.00816.46
7.2.250.0100.00615.06
7.2.240.0030.01415.25
7.2.230.0060.01014.93
7.2.220.0040.01214.81
7.2.210.0070.00714.94
7.2.200.0080.00815.12
7.2.190.0070.00714.95
7.2.180.0120.00615.13
7.2.170.0060.00815.04
7.2.160.0040.01115.01
7.2.150.0030.00817.12
7.2.140.0100.00716.94
7.2.130.0040.01516.60
7.2.120.0030.01217.06
7.2.110.0070.00716.95
7.2.100.0000.01316.75
7.2.90.0000.01316.96
7.2.80.0140.00017.21
7.2.70.0030.01416.71
7.2.60.0050.00916.87
7.2.50.0140.00316.77
7.2.40.0120.00016.73
7.2.30.0070.00717.09
7.2.20.0070.00316.90
7.2.10.0060.00616.71
7.2.00.0090.00718.07
7.1.330.0130.00615.91
7.1.320.0030.01015.92
7.1.310.0060.00315.74
7.1.300.0080.00415.69
7.1.290.0130.00315.92
7.1.280.0040.00815.54
7.1.270.0110.00015.67
7.1.260.0070.01015.68
7.1.250.0000.01415.51
7.1.240.0000.01315.61
7.1.230.0150.00015.71
7.1.220.0100.00315.86
7.1.210.0030.00515.77
7.1.200.0040.00915.79
7.1.190.0060.00615.80
7.1.180.0060.00615.54
7.1.170.0070.00715.73
7.1.160.0110.00015.77
7.1.150.0040.00815.93
7.1.140.0040.00715.92
7.1.130.0060.00815.88
7.1.120.0030.00915.63
7.1.110.0060.00615.94
7.1.100.0060.00816.99
7.1.90.0060.00615.70
7.1.80.0040.01115.57
7.1.70.0070.00716.53
7.1.60.0060.01117.63
7.1.50.0080.01016.45
7.1.40.0060.00915.76
7.1.30.0070.00415.63
7.1.20.0060.00315.83
7.1.10.0030.00715.81
7.1.00.0090.03919.02
7.0.330.0000.01015.40
7.0.320.0040.00415.59
7.0.310.0070.00715.49
7.0.300.0000.00915.32
7.0.290.0100.00315.19
7.0.280.0040.01115.27
7.0.270.0060.00915.61
7.0.260.0100.00315.37
7.0.250.0060.00315.33
7.0.240.0030.00915.30
7.0.230.0030.01015.29
7.0.220.0090.00615.47
7.0.210.0040.00815.53
7.0.200.0050.00615.95
7.0.190.0110.00415.47
7.0.180.0100.00715.49
7.0.170.0000.01615.58
7.0.160.0030.00615.52
7.0.150.0000.00915.37
7.0.140.0040.00715.37
7.0.130.0040.01115.20
7.0.120.0000.00815.50
7.0.110.0040.01115.25
7.0.100.0120.00015.45
7.0.90.0090.00615.54
7.0.80.0090.00315.53
7.0.70.0030.01015.18
7.0.60.0080.04317.70
7.0.50.0020.04216.72
7.0.40.0130.04016.82
7.0.30.0130.02916.88
7.0.20.0170.03816.90
7.0.10.0110.04316.73
7.0.00.0030.05216.77
5.6.400.0000.01314.51
5.6.390.0040.01114.21
5.6.380.0060.00914.50
5.6.370.0030.00714.71
5.6.360.0070.00314.21
5.6.350.0030.01014.11
5.6.340.0030.00614.17
5.6.330.0140.00014.19
5.6.320.0000.01014.31
5.6.310.0030.00914.40
5.6.300.0060.00914.55
5.6.290.0040.00814.36
5.6.280.0020.04117.78
5.6.270.0100.00014.27
5.6.260.0040.00814.18
5.6.250.0060.00814.11
5.6.240.0060.01214.27
5.6.230.0080.00814.35
5.6.220.0030.01014.36
5.6.210.0080.04317.46
5.6.200.0090.04516.23
5.6.190.0080.04017.28
5.6.180.0130.03417.42
5.6.170.0220.03417.41
5.6.160.0050.03017.56
5.6.150.0080.02016.16
5.6.140.0050.02816.29
5.6.130.0050.04216.22
5.6.120.0090.02517.62
5.6.110.0060.04517.62
5.6.100.0110.03517.62
5.6.90.0120.03617.55
5.6.80.0080.04117.28
5.6.70.0030.01014.26
5.6.60.0100.00714.13
5.6.50.0030.00614.37
5.6.40.0040.00814.13
5.6.30.0100.00314.20
5.6.20.0080.00414.31
5.6.10.0120.00414.32
5.6.00.0070.01014.21
5.5.380.0060.00314.17
5.5.370.0070.01114.39
5.5.360.0090.00014.43
5.5.350.0050.03517.33
5.5.340.0070.04516.20
5.5.330.0100.03017.33
5.5.320.0320.03317.36
5.5.310.0090.02517.29
5.5.300.0070.04316.16
5.5.290.0060.02815.95
5.5.280.0090.03517.46
5.5.270.0060.04017.67
5.5.260.0050.02817.32
5.5.250.0090.03917.46
5.5.240.2190.01517.12
5.5.230.0030.00614.25
5.5.220.0030.00913.89
5.5.210.0030.01313.81
5.5.200.0130.00313.98
5.5.190.0100.00613.98
5.5.180.0080.00313.98
5.5.170.0030.01014.45
5.5.160.0030.01014.31
5.5.150.0040.00713.82
5.5.140.0030.01014.43
5.5.130.0000.01414.04
5.5.120.0060.00914.30
5.5.110.0060.01214.22
5.5.100.0030.01214.30
5.5.90.0030.01814.29
5.5.80.0100.00414.03
5.5.70.0070.00714.07
5.5.60.0060.00913.97
5.5.50.0130.00014.27
5.5.40.0030.01414.28
5.5.30.0030.01014.05
5.5.20.0090.00913.85
5.5.10.0060.00914.23
5.5.00.0060.00914.11

preferences:
38.86 ms | 401 KiB | 5 Q