3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Ems_Dhv_Jugend { public function post_submit_meta_box_fum( WP_Post $post ) { global $action; exit(); $post_type = $post->post_type; $post_type_object = get_post_type_object( $post_type ); $can_publish = current_user_can( $post_type_object->cap->publish_posts ); $args = null; if ( post_type_supports( $post_type, 'revisions' ) && 'auto-draft' != $post->post_status ) { $revisions = wp_get_post_revisions( $post->ID ); // We should aim to show the revisions metabox only when there are revisions. if ( count( $revisions ) > 1 ) { reset( $revisions ); // Reset pointer for key() $args = array( 'revisions_count' => count( $revisions ), 'revision_id' => key( $revisions ) ); add_meta_box( 'revisionsdiv', __( 'Revisions' ), 'post_revisions_meta_box', null, 'normal', 'core' ); } } ?> <div class="submitbox" id="submitpost"> <div id="minor-publishing"> <?php // Hidden submit button early on so that the browser chooses the right button when form is submitted with Return key ?> <div style="display:none;"> <?php submit_button( __( 'Save' ), 'button', 'save' ); ?> </div> <div id="minor-publishing-actions"> <div id="save-action"> <?php if ( 'publish' != $post->post_status && 'future' != $post->post_status && 'pending' != $post->post_status ) { ?> <input <?php if ('private' == $post->post_status) { ?>style="display:none"<?php } ?> type="submit" name="save" id="save-post" value="<?php esc_attr_e( 'Save Draft' ); ?>" class="button" /> <?php } elseif ( 'pending' == $post->post_status && $can_publish ) { ?> <input type="submit" name="save" id="save-post" value="<?php esc_attr_e( 'Save as Pending' ); ?>" class="button" /> <?php } ?> <span class="spinner"></span> </div> <?php if ( $post_type_object->public ) : ?> <div id="preview-action"> <?php if ( 'publish' == $post->post_status ) { $preview_link = esc_url( get_permalink( $post->ID ) ); $preview_button = __( 'Preview Changes' ); } else { $preview_link = set_url_scheme( get_permalink( $post->ID ) ); $preview_link = esc_url( apply_filters( 'preview_post_link', add_query_arg( 'preview', 'true', $preview_link ) ) ); $preview_button = __( 'Preview' ); } ?> <a class="preview button" href="<?php echo $preview_link; ?>" target="wp-preview" id="post-preview"><?php echo $preview_button; ?></a> <input type="hidden" name="wp-preview" id="wp-preview" value="" /> </div> <?php endif; // public post type ?> <div class="clear"></div> </div> <!-- #minor-publishing-actions --> <div id="misc-publishing-actions"> <div class="misc-pub-section misc-pub-post-status"><label for="post_status"><?php _e( 'Status:' ) ?></label> <span id="post-status-display"> <?php switch ( $post->post_status ) { case 'private': _e( 'Privately Published' ); break; case 'publish': _e( 'Published' ); break; case 'future': _e( 'Scheduled' ); break; case 'pending': _e( 'Pending Review' ); break; case 'draft': case 'auto-draft': _e( 'Draft' ); break; } } } Ems_Dhv_Jugend::post_submit_meta_box_fum(NULL); ?>

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.00718.43
8.3.50.0090.01121.99
8.3.40.0070.00718.83
8.3.30.0100.00320.29
8.3.20.0040.00420.16
8.3.10.0000.00822.09
8.3.00.0040.00422.51
8.2.180.0030.01316.75
8.2.170.0100.01022.96
8.2.160.0070.01022.09
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0030.00626.16
8.2.120.0030.00519.70
8.2.110.0030.00622.26
8.2.100.0110.00017.78
8.2.90.0000.00819.09
8.2.80.0040.00419.37
8.2.70.0030.00617.63
8.2.60.0050.00517.80
8.2.50.0030.00518.07
8.2.40.0080.00018.16
8.2.30.0050.00518.18
8.2.20.0040.00417.67
8.2.10.0040.00417.75
8.2.00.0040.00717.74
8.1.270.0000.00924.66
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0100.01023.81
8.1.230.0040.00719.16
8.1.220.0040.00417.79
8.1.210.0000.00818.77
8.1.200.0100.00017.35
8.1.190.0080.00017.53
8.1.180.0040.00418.88
8.1.170.0080.00018.61
8.1.160.0000.00720.84
8.1.150.0040.00418.58
8.1.140.0030.00617.31
8.1.130.0030.00317.83
8.1.120.0080.00017.29
8.1.110.0000.00717.45
8.1.100.0040.00417.31
8.1.90.0040.00417.37
8.1.80.0050.00217.45
8.1.70.0040.00417.27
8.1.60.0060.00317.60
8.1.50.0040.00417.56
8.1.40.0000.00717.51
8.1.30.0040.00417.67
8.1.20.0050.00317.64
8.1.10.0030.00517.55
8.1.00.0000.01117.43
8.0.300.0000.00718.77
8.0.290.0080.00017.29
8.0.280.0000.00718.33
8.0.270.0050.00217.19
8.0.260.0030.00316.78
8.0.250.0030.00317.06
8.0.240.0070.00017.02
8.0.230.0080.00017.04
8.0.220.0090.00016.99
8.0.210.0000.00716.86
8.0.200.0000.00617.05
8.0.190.0040.00417.07
8.0.180.0040.00416.89
8.0.170.0040.00416.89
8.0.160.0070.00016.84
8.0.150.0040.00316.93
8.0.140.0040.00417.02
8.0.130.0030.00313.43
8.0.120.0040.00416.83
8.0.110.0080.00016.90
8.0.100.0040.00416.95
8.0.90.0000.00716.83
8.0.80.0080.00617.00
8.0.70.0000.00816.91
8.0.60.0050.00317.08
8.0.50.0050.00316.82
8.0.30.0140.00917.24
8.0.20.0090.00917.40
8.0.10.0070.00016.85
8.0.00.0110.00716.70
7.4.330.0030.00315.00
7.4.320.0000.00716.47
7.4.300.0030.00316.53
7.4.290.0040.00416.59
7.4.280.0000.00716.52
7.4.270.0000.00716.52
7.4.260.0030.00313.30
7.4.250.0050.00316.38
7.4.240.0020.00516.61
7.4.230.0030.00316.69
7.4.220.0150.00916.48
7.4.210.0090.00616.62
7.4.200.0030.00316.70
7.4.190.0050.00216.42
7.4.160.0130.00316.50
7.4.150.0060.01817.40
7.4.140.0100.01117.86
7.4.130.0110.01216.52
7.4.120.0070.00916.71
7.4.110.0130.00716.67
7.4.100.0130.00616.38
7.4.90.0120.00916.44
7.4.80.0070.01019.39
7.4.70.0110.00516.62
7.4.60.0100.01016.52
7.4.50.0000.00516.52
7.4.40.0000.01922.77
7.4.30.0130.00916.65
7.4.10.0080.01214.99
7.4.00.0070.01014.88
7.3.330.0000.00513.31
7.3.320.0030.00213.21
7.3.310.0030.00316.43
7.3.300.0030.00316.48
7.3.290.0060.01316.36
7.3.280.0090.00616.46
7.3.270.0120.00617.40
7.3.260.0130.00316.37
7.3.250.0090.00816.54
7.3.240.0080.01116.66
7.3.230.0090.01616.55
7.3.210.0150.00916.48
7.3.200.0080.01519.39
7.3.190.0130.01016.39
7.3.180.0060.00916.37
7.3.170.0100.00716.49
7.3.160.0130.00316.41
7.3.130.0030.01414.76
7.3.120.0040.01414.76
7.3.110.0050.01014.72
7.3.100.0080.00614.88
7.3.90.0030.01114.93
7.3.80.0020.01115.02
7.3.70.0060.00614.67
7.3.60.0070.00714.82
7.3.50.0030.01214.63
7.3.40.0050.01114.73
7.3.30.0020.00914.73
7.3.20.0090.00616.54
7.3.10.0080.00616.60
7.3.00.0040.00916.45
7.2.330.0100.01016.68
7.2.320.0120.00616.58
7.2.310.0130.00416.59
7.2.300.0110.00816.52
7.2.290.0100.00716.73
7.2.260.0040.01415.09
7.2.250.0080.01114.85
7.2.240.0080.00815.03
7.2.230.0050.01014.91
7.2.220.0050.00815.09
7.2.210.0080.00614.99
7.2.200.0100.00414.93
7.2.190.0050.01014.95
7.2.180.0060.00715.03
7.2.170.0050.01114.97
7.2.160.0090.00614.89
7.2.150.0030.01016.65
7.2.140.0000.00916.82
7.2.130.0060.00916.84
7.2.120.0070.00316.72
7.2.110.0000.01716.80
7.2.100.0060.01016.77
7.2.90.0070.00716.71
7.2.80.0090.00616.54
7.2.70.0030.00716.89
7.2.60.0040.01016.84
7.2.50.0110.00016.84
7.2.40.0100.00716.85
7.2.30.0030.01016.83
7.2.20.0040.01416.84
7.2.10.0040.00816.68
7.2.00.0040.00716.78
7.1.330.0090.00415.69
7.1.320.0050.00715.45
7.1.310.0030.00815.63
7.1.300.0030.00715.44
7.1.290.0050.00915.55
7.1.280.0030.00815.59
7.1.270.0030.01015.33
7.1.260.0050.01115.62
7.1.250.0050.00515.76
7.1.240.0040.00415.80
7.1.230.0060.00615.66
7.1.220.0100.00715.58
7.1.210.0040.00815.47
7.1.200.0050.00915.67
7.1.190.0120.00315.66
7.1.180.0090.00015.45
7.1.170.0030.00615.73
7.1.160.0030.01315.66
7.1.150.0030.00915.66
7.1.140.0100.00715.50
7.1.130.0030.00715.59
7.1.120.0040.01115.61
7.1.110.0030.01015.55
7.1.100.0030.00916.86
7.1.90.0040.01115.43
7.1.80.0060.00615.80
7.1.70.0020.00716.36
7.1.60.0080.01117.60
7.1.50.0040.01116.16
7.1.40.0090.00315.59
7.1.30.0060.00615.68
7.1.20.0070.00715.48
7.1.10.0080.00815.42
7.1.00.0030.02318.89
7.0.330.0030.01315.07
7.0.320.0000.01015.21
7.0.310.0000.01315.24
7.0.300.0080.00015.25
7.0.290.0070.00715.40
7.0.280.0030.00715.21
7.0.270.0080.00315.28
7.0.260.0080.00315.31
7.0.250.0090.00615.32
7.0.240.0070.00315.43
7.0.230.0000.01215.26
7.0.220.0040.01115.52
7.0.210.0100.00015.21
7.0.200.0070.00515.98
7.0.190.0030.00515.46
7.0.180.0000.00815.43
7.0.170.0000.01115.39
7.0.160.0080.00815.15
7.0.150.0110.00715.39
7.0.140.0050.03818.64
7.0.130.0030.01015.38
7.0.120.0100.00315.30
7.0.110.0110.00415.43
7.0.100.0100.00715.31
7.0.90.0040.00915.39
7.0.80.0070.00715.29
7.0.70.0090.00915.31
7.0.60.0070.03717.58
7.0.50.0030.04516.57
7.0.40.0050.04716.82
7.0.30.0180.03816.84
7.0.20.0160.03116.67
7.0.10.0210.03416.56
7.0.00.0050.03116.77
5.6.400.0070.01014.13
5.6.390.0090.00014.15
5.6.380.0030.00914.21
5.6.370.0060.00914.57
5.6.360.0030.01414.28
5.6.350.0130.00314.32
5.6.340.0100.00314.51
5.6.330.0100.00614.40
5.6.320.0040.01114.25
5.6.310.0040.01214.15
5.6.300.0110.00714.09
5.6.290.0000.01114.54
5.6.280.0130.03017.48
5.6.270.0040.01414.48
5.6.260.0030.01014.15
5.6.250.0030.00614.16
5.6.240.0060.00614.27
5.6.230.0030.01314.35
5.6.220.0040.01114.26
5.6.210.0110.03817.41
5.6.200.0100.04316.24
5.6.190.0070.04717.32
5.6.180.0060.02517.47
5.6.170.0200.04217.36
5.6.160.0050.03417.38
5.6.150.0060.03816.32
5.6.140.0080.02316.21
5.6.130.0050.02616.12
5.6.120.0090.04517.78
5.6.110.0120.02117.58
5.6.100.0020.04417.56
5.6.90.0070.03817.52
5.6.80.0000.02717.20
5.6.70.0210.03617.22
5.6.60.0090.00614.37
5.6.50.0040.01314.18
5.6.40.0090.00914.10
5.6.30.0100.00714.22
5.6.20.0030.01214.08
5.6.10.0070.00714.38
5.6.00.0040.01014.38
5.5.380.0060.00314.18
5.5.370.0080.00414.29
5.5.360.0090.00014.01
5.5.350.0050.04017.24
5.5.340.0110.03816.13
5.5.330.0050.02517.32
5.5.320.0190.04217.15
5.5.310.0180.03817.30
5.5.300.0050.02816.09
5.5.290.0090.04016.05
5.5.280.0130.03817.59
5.5.270.0080.03117.42
5.5.260.0100.03817.47
5.5.250.0070.02717.36
5.5.240.0070.03717.02
5.5.230.0000.01314.12
5.5.220.0070.00814.14
5.5.210.0030.00614.16
5.5.200.0060.00614.12
5.5.190.0100.00313.92
5.5.180.0040.00814.11
5.5.170.0100.00714.27
5.5.160.0070.00714.04
5.5.150.0090.00314.17
5.5.140.0100.00314.12
5.5.130.0060.00913.85
5.5.120.0030.01014.01
5.5.110.0060.00614.30
5.5.100.0070.00714.26
5.5.90.0030.01014.09
5.5.80.0070.00714.27
5.5.70.0070.00713.80
5.5.60.0040.01113.98
5.5.50.0000.01614.24
5.5.40.0030.01013.64
5.5.30.0040.01114.12
5.5.20.0060.00914.03
5.5.10.0060.00914.18
5.5.00.0040.00713.89
5.4.450.0820.02315.05
5.4.440.0770.02515.09
5.4.430.0800.02515.11
5.4.420.0900.02315.22
5.4.410.0820.02015.15
5.4.400.0670.02214.98
5.4.390.0060.02014.85
5.4.380.0120.01814.97
5.4.370.0150.03014.81
5.4.360.0800.02414.91
5.4.350.0820.01814.68
5.4.340.0910.02115.03
5.4.330.0060.00911.01
5.4.320.0850.01814.88
5.4.310.0870.02715.06
5.4.300.1100.02514.74
5.4.290.1020.02714.88
5.4.280.0950.03114.90
5.4.270.0940.02015.05
5.4.260.0890.02214.84
5.4.250.0830.02115.06
5.4.240.0820.01615.01
5.4.230.0830.01714.86
5.4.220.0760.02314.85
5.4.210.0940.02214.97
5.4.200.0850.02614.88
5.4.190.0960.02014.97
5.4.180.0870.02414.80
5.4.170.0890.02714.80
5.4.160.0780.02014.88
5.4.150.0950.02314.78
5.4.140.0780.01813.74
5.4.130.0730.01913.82
5.4.120.0090.03313.55
5.4.110.0040.04413.62
5.4.100.0040.04313.69
5.4.90.0870.02613.72
5.4.80.0950.02513.55
5.4.70.0910.02213.61
5.4.60.0900.02413.65
5.4.50.0940.02213.70
5.4.40.0910.02313.66
5.4.30.0730.02313.65
5.4.20.0800.02013.67
5.4.10.0980.02813.68
5.4.00.0780.02713.42
5.3.290.0730.02512.48
5.3.280.0170.03812.57
5.3.270.0130.04112.54
5.3.260.0130.04012.57
5.3.250.0080.03212.68
5.3.240.0130.03512.54
5.3.230.0070.04412.41
5.3.220.0120.02912.54
5.3.210.0120.03812.49
5.3.200.0130.02212.52
5.3.190.0120.03512.65
5.3.180.0080.02412.69
5.3.170.0130.02512.61
5.3.160.0130.02312.64
5.3.150.0150.03812.72
5.3.140.0150.03912.51
5.3.130.0080.02612.38
5.3.120.0120.04012.71
5.3.110.0170.02512.53
5.3.100.0170.02812.35
5.3.90.0130.03212.34
5.3.80.0130.02112.18
5.3.70.0130.02712.23
5.3.60.0100.02312.19
5.3.50.0120.02212.20
5.3.40.0150.02112.11
5.3.30.0030.03012.13
5.3.20.0100.02611.95
5.3.10.0070.02611.98
5.3.00.0120.02011.88
5.2.170.0100.03311.18
5.2.160.0130.03711.10
5.2.150.0130.04011.10
5.2.140.0170.03711.23
5.2.130.0070.04711.06
5.2.120.0130.03011.04
5.2.110.0270.02711.14
5.2.100.0130.06011.14
5.2.90.0200.04711.05
5.2.80.0130.05011.35
5.2.70.0200.03311.04
5.2.60.0130.04011.13
5.2.50.0170.03311.02
5.2.40.0170.04011.11
5.2.30.0200.05011.05
5.2.20.0130.02711.04
5.2.10.0200.02010.89
5.2.00.0130.02710.75
5.1.60.0100.02710.27
5.1.50.0070.0309.96
5.1.40.0100.03310.14
5.1.30.0170.02010.45
5.1.20.0200.02010.39
5.1.10.0200.02310.19
5.1.00.0170.03310.16
5.0.50.0070.0208.66
5.0.40.0070.0208.42
5.0.30.0100.0538.15
5.0.20.0030.0208.32
5.0.10.0030.0208.10
5.0.00.0070.0308.09
4.4.90.0070.0177.96
4.4.80.0130.0077.96
4.4.70.0070.0137.96
4.4.60.0030.0177.96
4.4.50.0070.0207.96
4.4.40.0000.0277.96
4.4.30.0070.0177.96
4.4.20.0100.0137.96
4.4.10.0070.0207.96
4.4.00.0100.0207.96
4.3.110.0030.0177.96
4.3.100.0030.0177.96
4.3.90.0070.0277.96
4.3.80.0070.0237.96
4.3.70.0030.0177.96
4.3.60.0070.0177.96
4.3.50.0100.0107.96
4.3.40.0070.0277.96
4.3.30.0070.0107.96
4.3.20.0000.0177.96
4.3.10.0000.0177.96
4.3.00.0000.0177.96

preferences:
52.48 ms | 400 KiB | 5 Q