3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class WP_Widget { abstract function widget( $args, $instance ); } class Test extends WP_Widget { public function widget( $args, $instance ) {} } class Test_two extends WP_Widget { public function widget( $args = array(), $instance = array() ) {} } class Test_three extends WP_Widget { public function widget( ) {} }

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)
7.0.60.0870.00020.13
7.0.50.0870.00020.46
7.0.40.0870.00020.25
7.0.30.0800.00020.37
7.0.20.0830.00020.22
7.0.10.0700.00020.41
7.0.00.0700.00020.27
5.6.210.0970.00020.75
5.6.200.0900.00021.22
5.6.190.0900.00021.07
5.6.180.0830.00021.17
5.6.170.0770.00021.07
5.6.160.0730.00021.05
5.6.150.0700.00021.12
5.6.140.0730.00021.02
5.6.130.0730.00021.21
5.6.120.0730.00021.04
5.6.110.0830.00021.12
5.6.100.0730.00021.17
5.6.90.0770.00021.03
5.6.80.0770.00020.46
5.6.70.0700.00020.44
5.6.60.0930.00020.50
5.6.50.0770.00020.43
5.6.40.0700.00020.49
5.6.30.0800.00020.57
5.6.20.0730.00020.32
5.6.10.0870.00020.39
5.6.00.0800.00020.42
5.5.350.0730.00020.53
5.5.340.0730.00020.96
5.5.330.0930.00020.81
5.5.320.0730.00020.88
5.5.310.0730.00020.88
5.5.300.0930.00020.97
5.5.290.0830.00020.96
5.5.280.0900.00021.05
5.5.270.0770.00021.03
5.5.260.0800.00020.92
5.5.250.0730.00020.66
5.5.240.0730.00020.19
5.5.230.0730.00020.14
5.5.220.0670.00020.20
5.5.210.0670.00020.18
5.5.200.0900.00020.09
5.5.190.1030.00020.24
5.5.180.0800.00020.19
5.5.160.0700.00020.36
5.5.150.0700.00020.37
5.5.140.0730.00020.29
5.5.130.0700.00020.20
5.5.120.0670.00020.36
5.5.110.0700.00020.22
5.5.100.0700.00020.30
5.5.90.0870.00020.01
5.5.80.0670.00020.20
5.5.70.0730.00020.19
5.5.60.0700.00020.05
5.5.50.0670.00020.10
5.5.40.0630.00020.27
5.5.30.0800.00020.16
5.5.20.0700.00020.16
5.5.10.0670.00019.94
5.5.00.0700.00020.11
5.4.450.0700.00019.24
5.4.440.0700.00019.50
5.4.430.0670.00019.30
5.4.420.0670.00019.46
5.4.410.0670.00019.33
5.4.400.0670.00019.13
5.4.390.0700.00019.16
5.4.380.0670.00019.21
5.4.370.0630.00018.96
5.4.360.0770.00018.91
5.4.350.0670.00018.98
5.4.340.0700.00018.88
5.4.320.0770.00019.01
5.4.310.0700.00019.13
5.4.300.0700.00019.01
5.4.290.0670.00019.00
5.4.280.0670.00019.23
5.4.270.0670.00018.91
5.4.260.0670.00019.00
5.4.250.0630.00019.13
5.4.240.0630.00019.12
5.4.230.0700.00019.18
5.4.220.0670.00019.22
5.4.210.0870.00018.90
5.4.200.0630.00019.18
5.4.190.0670.00019.02
5.4.180.0670.00019.13
5.4.170.0770.00019.25
5.4.160.0700.00018.98
5.4.150.0770.00019.11
5.4.140.0630.00016.55
5.4.130.0730.00016.58
5.4.120.0670.00016.46
5.4.110.0730.00016.30
5.4.100.0600.00016.38
5.4.90.0700.00016.30
5.4.80.0670.00016.52
5.4.70.0700.00016.35
5.4.60.0700.00016.46
5.4.50.0630.00016.47
5.4.40.0700.00016.54
5.4.30.0630.00016.43
5.4.20.0770.00016.54
5.4.10.0670.00016.37
5.4.00.0700.00015.67
5.3.290.0730.00014.75
5.3.280.0670.00014.65
5.3.270.0670.00014.52
5.3.260.0800.00014.66
5.3.250.0670.00014.66
5.3.240.0630.00014.71
5.3.230.0700.00014.70
5.3.220.0670.00014.65
5.3.210.0700.00014.67
5.3.200.0700.00014.55
5.3.190.0630.00014.62
5.3.180.0700.00014.52
5.3.170.0730.00014.63
5.3.160.0700.00014.61
5.3.150.0670.00014.64
5.3.140.0670.00014.64
5.3.130.0870.00014.56
5.3.120.1000.00014.46
5.3.110.0630.00014.64
5.3.100.0630.00014.00
5.3.90.0930.00014.14
5.3.80.0630.00014.02
5.3.70.0670.00014.14
5.3.60.0630.00013.98
5.3.50.0600.00014.03
5.3.40.0700.00013.86
5.3.30.0630.00013.99
5.3.20.0600.00013.55
5.3.10.0600.00013.77
5.3.00.0670.00013.61
5.2.170.0530.00011.24
5.2.160.0500.00011.13
5.2.150.0530.00011.23
5.2.140.0570.00011.16
5.2.130.0570.00011.08
5.2.120.0570.00011.09
5.2.110.0470.00010.96
5.2.100.0530.00011.20
5.2.90.0530.00011.09
5.2.80.0530.00011.16
5.2.70.0500.00010.98
5.2.60.0500.00011.16
5.2.50.0530.00010.92
5.2.40.0470.00010.99
5.2.30.0530.00010.90
5.2.20.0500.00010.96
5.2.10.0500.00010.85
5.2.00.0600.00010.77
5.1.60.0430.0009.98
5.1.50.0470.0009.99
5.1.40.0570.0009.96
5.1.30.0500.00010.35
5.1.20.0470.00010.32
5.1.10.0430.00010.05
5.1.00.0430.00010.04
5.0.50.0330.0008.56
5.0.40.0330.0008.39
5.0.30.0470.0008.21
5.0.20.0430.0008.11
5.0.10.0370.0008.16
5.0.00.0470.0008.13
4.4.90.0230.0005.79
4.4.80.0230.0005.76
4.4.70.0270.0005.80
4.4.60.0300.0005.72
4.4.50.0270.0005.78
4.4.40.0400.0005.76
4.4.30.0370.0005.75
4.4.20.0230.0005.77
4.4.10.0230.0005.84
4.4.00.0370.0005.80
4.3.110.0230.0005.65
4.3.100.0330.0005.71
4.3.90.0270.0005.66
4.3.80.0430.0005.70
4.3.70.0230.0005.63
4.3.60.0230.0005.64
4.3.50.0270.0005.64
4.3.40.0370.0005.64
4.3.30.0270.0005.54
4.3.20.0270.0005.54
4.3.10.0270.0005.54
4.3.00.0270.0005.54

preferences:
148.24 ms | 1394 KiB | 7 Q