3v4l.org

run code in 300+ PHP versions simultaneously
<?php class WP_REST_Global_Styles_Controller { public function update_item() { echo "\n" . __METHOD__ . "\n"; $this->prepare_item_for_database(); } protected function prepare_item_for_database() { echo "\n" . __METHOD__ . "\n"; $this->validate_custom_css(); } private function validate_custom_css() { echo __METHOD__ . "()\n"; } } class WP_REST_Global_Styles_Controller_X_X extends WP_REST_Global_Styles_Controller { public function update_item() { echo "\n" . __METHOD__ . "\n"; // some custom code. $this->prepare_item_for_database(); } /** * Want to invoke this method, not the parent's method. */ protected function validate_custom_css() { echo __METHOD__ . "()\n"; } } ( new WP_REST_Global_Styles_Controller_X_X() )->update_item();

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.4.20.0100.01018.83
8.4.10.0030.00619.55
8.3.150.0100.01020.68
8.3.140.0040.00417.20
8.3.130.0080.00018.39
8.3.120.0030.00620.68
8.3.110.0080.00020.94
8.3.100.0060.00316.46
8.3.90.0050.00326.77
8.3.80.0070.00418.43
8.3.70.0070.00718.43
8.3.60.0100.00716.50
8.3.50.0110.00716.67
8.3.40.0040.01120.29
8.3.30.0100.00321.50
8.3.20.0070.00024.18
8.3.10.0000.00724.66
8.3.00.0050.00326.16
8.2.270.0070.00717.32
8.2.260.0060.00320.13
8.2.250.0080.00016.48
8.2.240.0150.00018.86
8.2.230.0080.00022.58
8.2.220.0060.00324.06
8.2.210.0100.00026.77
8.2.200.0050.00518.16
8.2.190.0040.01116.58
8.2.180.0070.01316.63
8.2.170.0070.01018.64
8.2.160.0140.00722.96
8.2.150.0000.00825.66
8.2.140.0000.00824.66
8.2.130.0050.00326.16
8.2.120.0060.00320.46
8.2.110.0070.00420.38
8.2.100.0000.01220.84
8.2.90.0110.00518.50
8.2.80.0120.00318.56
8.2.70.0160.00318.43
8.2.60.0150.00418.55
8.2.50.0140.00318.33
8.2.40.0170.00018.87
8.2.30.0080.00420.37
8.2.20.0080.00818.57
8.2.10.0130.00318.74
8.2.00.0040.01218.68
8.1.310.0120.00618.59
8.1.300.0080.00819.59
8.1.290.0060.00330.84
8.1.280.0000.01425.92
8.1.270.0040.00423.99
8.1.260.0050.00326.35
8.1.250.0090.00028.09
8.1.240.0090.00618.25
8.1.230.0140.00318.57
8.1.220.0130.01018.43
8.1.210.0160.00019.91
8.1.200.0100.00518.43
8.1.190.0140.00318.34
8.1.180.0140.00318.25
8.1.170.0150.00018.33
8.1.160.0140.00018.58
8.1.150.0090.00620.50
8.1.140.0080.00818.25
8.1.130.0080.00818.54
8.1.120.0110.00418.41
8.1.110.0060.00918.32
8.1.100.0130.00618.57
8.1.90.0150.00018.39
8.1.80.0150.00018.27
8.1.70.0080.00418.76
8.1.60.0140.00418.47
8.1.50.0110.00718.59
8.1.40.0140.00018.60
8.1.30.0110.00618.72
8.1.20.0140.00418.64
8.1.10.0080.00818.56
8.1.00.0110.00418.48
8.0.300.0250.00017.52
8.0.290.0080.00817.96
8.0.280.0230.00717.82
8.0.270.0290.01117.83
8.0.260.0110.00617.89
8.0.250.0100.00717.82
8.0.240.0150.00417.80
8.0.230.0230.00718.21
8.0.220.0110.00817.68
8.0.210.0180.00017.55
8.0.200.0240.00617.75
8.0.190.0130.00417.62
8.0.180.0220.00417.52
8.0.170.0130.00017.71
8.0.160.0280.00617.77
8.0.150.0130.00417.63
8.0.140.0260.00417.57
8.0.130.0290.00018.13
8.0.120.0150.00317.50
8.0.110.0130.00317.93
8.0.100.0070.01017.40
8.0.90.0070.00717.75
8.0.80.0130.00417.70
8.0.70.0120.00417.75
8.0.60.0150.00917.50
8.0.50.0150.00417.69
8.0.30.0090.00617.88
8.0.20.0140.00517.73
8.0.10.0180.00017.62

preferences:
26.46 ms | 403 KiB | 5 Q