3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Ems_Dhv_Jugend { public static 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.70.0040.01116.63
8.3.60.0040.01118.31
8.3.50.0140.01022.05
8.3.40.0080.00818.81
8.3.30.0100.00320.21
8.3.20.0040.00420.25
8.3.10.0060.00322.09
8.3.00.0000.00822.35
8.2.180.0220.00016.63
8.2.170.0070.01022.96
8.2.160.0130.00322.16
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0070.00726.16
8.2.120.0000.00819.52
8.2.110.0040.00422.08
8.2.100.0040.00717.97
8.2.90.0040.00419.14
8.2.80.0000.00719.23
8.2.70.0060.00617.50
8.2.60.0100.00017.90
8.2.50.0050.00518.07
8.2.40.0070.00318.22
8.2.30.0040.00417.98
8.2.20.0080.00017.72
8.2.10.0030.00517.67
8.2.00.0070.00317.63
8.1.280.0040.01125.92
8.1.270.0040.00424.66
8.1.260.0140.00026.35
8.1.250.0040.00428.09
8.1.240.0000.00923.78
8.1.230.0040.00919.06
8.1.220.0000.00817.79
8.1.210.0090.00018.77
8.1.200.0070.00317.23
8.1.190.0080.00017.52
8.1.180.0030.00519.01
8.1.170.0050.00318.42
8.1.160.0000.00720.98
8.1.150.0040.00418.62
8.1.140.0040.00417.40
8.1.130.0000.00717.78
8.1.120.0000.00817.33
8.1.110.0000.00717.31
8.1.100.0040.00417.36
8.1.90.0030.00317.28
8.1.80.0050.00217.39
8.1.70.0050.00317.30
8.1.60.0070.00317.59
8.1.50.0040.00417.53
8.1.40.0030.00517.53
8.1.30.0030.00617.65
8.1.20.0040.00417.59
8.1.10.0040.00417.49
8.1.00.0030.00717.52
8.0.300.0080.00018.77
8.0.290.0070.00017.30
8.0.280.0030.00318.36
8.0.270.0040.00417.33
8.0.260.0030.00316.86
8.0.250.0030.00317.03
8.0.240.0000.00817.03
8.0.230.0070.00016.95
8.0.220.0030.00816.87
8.0.210.0070.00017.03
8.0.200.0030.00316.91
8.0.190.0060.00317.04
8.0.180.0040.00416.99
8.0.170.0040.00416.84
8.0.160.0040.00416.86
8.0.150.0070.00016.93
8.0.140.0030.00516.96
8.0.130.0000.00613.39
8.0.120.0060.00316.99
8.0.110.0040.00416.99
8.0.100.0040.00416.98
8.0.90.0050.00316.77
8.0.80.0090.01216.97
8.0.70.0040.00416.95
8.0.60.0070.00016.83
8.0.50.0080.00016.91
8.0.30.0110.01517.09
8.0.20.0080.01117.41
8.0.10.0040.00416.97
8.0.00.0090.00916.76
7.4.330.0040.00415.00
7.4.320.0030.00316.55
7.4.300.0030.00316.62
7.4.290.0030.00316.54
7.4.280.0080.00016.52
7.4.270.0000.00716.61
7.4.260.0000.00513.31
7.4.250.0040.00416.60
7.4.240.0020.00616.56
7.4.230.0040.00316.62
7.4.220.0030.01616.47
7.4.210.0080.00616.56
7.4.200.0000.00716.52
7.4.190.0030.00516.70
7.4.160.0030.01416.50
7.4.150.0080.00817.40
7.4.140.0100.00717.86
7.4.130.0140.00616.54
7.4.120.0030.01616.59
7.4.110.0060.01216.54
7.4.100.0090.00916.55
7.4.90.0120.01216.49
7.4.80.0140.00319.39
7.4.70.0150.00316.57
7.4.60.0100.00716.36
7.4.50.0030.00616.53
7.4.40.0000.01622.77
7.4.30.0110.00616.50
7.4.10.0100.00714.96
7.4.00.0080.00815.09
7.3.330.0050.00013.43
7.3.320.0030.00313.38
7.3.310.0000.00716.53
7.3.300.0040.00316.31
7.3.290.0130.00716.36
7.3.280.0060.00816.45
7.3.270.0060.01217.40
7.3.260.0070.01116.35
7.3.250.0140.00416.49
7.3.240.0070.01116.66
7.3.230.0100.00716.50
7.3.210.0130.00916.51
7.3.200.0060.01219.39
7.3.190.0110.01216.59
7.3.180.0000.01516.53
7.3.170.0090.00616.51
7.3.160.0060.00916.47
7.3.130.0110.00714.87
7.3.120.0100.00614.79
7.3.110.0000.01815.09
7.3.100.0090.00614.65
7.3.90.0140.00014.83
7.3.80.0090.00615.00
7.3.70.0060.00614.89
7.3.60.0040.01114.96
7.3.50.0000.01414.90
7.3.40.0080.00614.81
7.3.30.0090.00014.91
7.3.20.0040.00816.46
7.3.10.0040.01116.61
7.3.00.0030.00916.71
7.2.330.0070.01416.55
7.2.320.0090.01216.34
7.2.310.0070.01016.34
7.2.300.0160.00516.83
7.2.290.0060.00916.46
7.2.260.0080.01115.21
7.2.250.0100.01014.79
7.2.240.0140.00415.13
7.2.230.0000.00914.94
7.2.220.0040.00714.97
7.2.210.0060.00814.98
7.2.200.0040.00715.04
7.2.190.0060.00914.97
7.2.180.0060.00614.95
7.2.170.0080.00415.05
7.2.160.0090.00014.96
7.2.150.0030.01316.41
7.2.140.0040.00716.76
7.2.130.0060.00916.66
7.2.120.0070.00716.79
7.2.110.0090.00616.73
7.2.100.0000.01516.66
7.2.90.0030.01016.82
7.2.80.0070.00316.79
7.2.70.0090.00616.63
7.2.60.0040.00816.72
7.2.50.0030.01316.84
7.2.40.0120.00316.89
7.2.30.0000.01316.64
7.2.20.0120.00316.82
7.2.10.0030.01016.94
7.2.00.0150.00717.85
7.1.330.0060.00915.81
7.1.320.0070.00715.47
7.1.310.0070.00315.48
7.1.300.0060.01015.26
7.1.290.0000.00915.46
7.1.280.0080.00815.81
7.1.270.0070.00715.66
7.1.260.0110.00315.70
7.1.250.0100.00315.74
7.1.240.0060.00915.64
7.1.230.0060.00315.63
7.1.220.0040.01115.76
7.1.210.0040.01215.39
7.1.200.0050.00915.62
7.1.190.0070.00715.68
7.1.180.0030.01015.70
7.1.170.0030.01015.76
7.1.160.0030.01315.53
7.1.150.0100.00015.36
7.1.140.0040.00415.66
7.1.130.0000.01015.44
7.1.120.0030.00915.69
7.1.110.0070.00415.50
7.1.100.0050.00315.76
7.1.90.0040.01115.46
7.1.80.0130.00315.42
7.1.70.0030.00516.27
7.1.60.0040.00716.39
7.1.50.0080.01116.31
7.1.40.0030.00715.69
7.1.30.0000.01215.41
7.1.20.0030.01115.38
7.1.10.0060.00315.58
7.1.00.0050.02718.85
7.0.330.0060.00615.14
7.0.320.0040.00415.13
7.0.310.0000.01315.38
7.0.300.0040.00714.99
7.0.290.0060.00615.08
7.0.280.0030.01015.12
7.0.270.0070.00715.37
7.0.260.0120.00315.41
7.0.250.0070.00715.37
7.0.240.0040.01215.11
7.0.230.0030.00915.42
7.0.220.0050.00515.44
7.0.210.0090.00315.30
7.0.200.0000.01515.83
7.0.190.0030.00615.31
7.0.180.0030.00915.08
7.0.170.0040.01115.37
7.0.160.0070.00715.43
7.0.150.0030.00615.42
7.0.140.0030.03818.72
7.0.130.0080.00415.35
7.0.120.0050.00315.18
7.0.110.0030.00615.39
7.0.100.0060.00315.29
7.0.90.0040.00814.97
7.0.80.0070.00315.10
7.0.70.0060.00615.47
7.0.60.0050.04017.63
7.0.50.0080.04416.66
7.0.40.0100.03816.70
7.0.30.0160.04616.81
7.0.20.0180.03516.71
7.0.10.0150.02216.76
7.0.00.0060.05016.80
5.6.400.0040.01114.41
5.6.390.0040.00413.93
5.6.380.0110.00414.16
5.6.370.0000.01614.17
5.6.360.0030.00914.42
5.6.350.0060.00614.17
5.6.340.0090.00614.34
5.6.330.0080.00414.63
5.6.320.0040.00714.22
5.6.310.0070.00714.37
5.6.300.0040.00414.30
5.6.290.0000.01314.37
5.6.280.0070.03717.73
5.6.270.0070.00414.13
5.6.260.0060.00614.36
5.6.250.0060.00814.50
5.6.240.0030.00714.12
5.6.230.0060.00313.97
5.6.220.0030.01414.18
5.6.210.0070.04017.37
5.6.200.0070.04516.25
5.6.190.0070.04317.20
5.6.180.0150.04517.61
5.6.170.0170.03617.29
5.6.160.0110.04117.37
5.6.150.0050.03116.22
5.6.140.0040.02516.17
5.6.130.0050.03816.02
5.6.120.0040.02517.63
5.6.110.0090.04117.63
5.6.100.0010.02617.68
5.6.90.0070.02817.61
5.6.80.0080.03817.22
5.6.70.0180.03617.20
5.6.60.0100.00714.14
5.6.50.0070.00714.20
5.6.40.0000.01214.01
5.6.30.0090.00314.37
5.6.20.0000.01314.18
5.6.10.0060.00614.14
5.6.00.0030.00614.10
5.5.380.0090.00614.06
5.5.370.0060.00614.05
5.5.360.0100.00714.21
5.5.350.0050.04717.19
5.5.340.0090.02116.01
5.5.330.0050.02917.24
5.5.320.0210.04117.12
5.5.310.0130.03117.28
5.5.300.0060.02116.13
5.5.290.0060.04516.17
5.5.280.0050.04217.53
5.5.270.0100.04117.29
5.5.260.0130.02517.62
5.5.250.0070.03417.36
5.5.240.0080.04017.23
5.5.230.0060.00314.09
5.5.220.0070.00714.39
5.5.210.0080.00814.08
5.5.200.0030.00614.04
5.5.190.0070.00714.14
5.5.180.0100.00714.03
5.5.170.0080.00414.21
5.5.160.0040.00914.04
5.5.150.0040.01514.25
5.5.140.0070.01014.13
5.5.130.0000.01313.92
5.5.120.0000.00914.09
5.5.110.0000.01314.21
5.5.100.0030.00613.97
5.5.90.0060.01014.20
5.5.80.0050.00514.18
5.5.70.0030.00714.38
5.5.60.0100.00314.19
5.5.50.0100.00313.86
5.5.40.0090.00314.29
5.5.30.0040.01113.79
5.5.20.0000.01014.07
5.5.10.0000.01713.87
5.5.00.0000.01414.07
5.4.450.0280.02816.46
5.4.440.0130.02816.31
5.4.430.0090.03516.33
5.4.420.0160.04116.41
5.4.410.0100.03016.29
5.4.400.0150.03315.94
5.4.390.0220.03215.94
5.4.380.0050.03515.97
5.4.370.0100.02716.05
5.4.360.0050.03116.06
5.4.350.0060.02312.68
5.4.340.0050.02012.68
5.4.330.0000.00813.32
5.4.320.0040.02412.92
5.4.310.0040.02512.92
5.4.300.0060.02612.92
5.4.290.0020.02612.92
5.4.280.0090.01912.87
5.4.270.0050.02212.87
5.4.260.0030.02612.87
5.4.250.0070.02112.87
5.4.240.0130.02916.14
5.4.230.0080.03016.03
5.4.220.0100.03016.18
5.4.210.0080.03116.13
5.4.200.0120.02616.02
5.4.190.0070.02816.11
5.4.180.0190.02916.03
5.4.170.0080.03016.14
5.4.160.0120.02716.15
5.4.150.0100.02816.11
5.4.140.0080.02514.88
5.4.130.0120.02514.88
5.4.120.0080.02514.95
5.4.110.0050.03214.86
5.4.100.0050.03114.92
5.4.90.0050.02914.94
5.4.80.0030.03014.83
5.4.70.0090.02314.90
5.4.60.0070.03014.85
5.4.50.0050.03314.90
5.4.40.0060.02814.84
5.4.30.0070.02914.83
5.4.20.0080.03014.88
5.4.10.0070.02814.86
5.4.00.0050.02914.49
5.3.290.0090.02413.06
5.3.280.0070.04013.96
5.3.270.0080.04213.93
5.3.260.0100.02914.02
5.3.250.0070.02814.02
5.3.240.0080.03613.99
5.3.230.0050.03114.02
5.3.220.0050.03313.95
5.3.210.0110.03313.99
5.3.200.0070.03414.07
5.3.190.0050.03814.01
5.3.180.0070.02813.99
5.3.170.0030.03014.00
5.3.160.0070.03513.87
5.3.150.0100.02714.00
5.3.140.0070.03113.87
5.3.130.0110.03014.04
5.3.120.0110.02714.01
5.3.110.0070.03214.00
5.3.100.0080.03313.73
5.3.90.0000.03913.78
5.3.80.0200.02513.60
5.3.70.0100.03013.67
5.3.60.0030.03813.72
5.3.50.0070.02913.68
5.3.40.0080.03813.65
5.3.30.0050.02713.61
5.3.20.0100.03013.56
5.3.10.0040.02813.50
5.3.00.0080.03213.50
5.2.170.0130.04311.26
5.2.160.0130.03711.27
5.2.150.0000.04711.18
5.2.140.0100.04311.36
5.2.130.0100.03711.30
5.2.120.0130.04011.20
5.2.110.0030.04311.19
5.2.100.0130.03311.08
5.2.90.0070.04011.12
5.2.80.0100.05011.20
5.2.70.0170.03311.02
5.2.60.0030.05010.98
5.2.50.0030.04311.14
5.2.40.0030.04311.11
5.2.30.0000.05711.09
5.2.20.0030.05310.96
5.2.10.0070.03710.97
5.2.00.0130.04710.83
5.1.60.0000.03710.09
5.1.50.0070.0339.86
5.1.40.0000.0379.98
5.1.30.0070.03310.58
5.1.20.0100.03310.60
5.1.10.0030.03710.07
5.1.00.0070.05010.30
5.0.50.0000.0438.64
5.0.40.0030.0278.50
5.0.30.0030.0478.31
5.0.20.0030.0308.29
5.0.10.0070.0308.30
5.0.00.0030.0408.25
4.4.90.0000.0277.30
4.4.80.0030.0237.30
4.4.70.0030.0207.30
4.4.60.0030.0207.30
4.4.50.0070.0237.30
4.4.40.0030.0377.30
4.4.30.0030.0207.30
4.4.20.0000.0237.30
4.4.10.0030.0207.30
4.4.00.0030.0307.30
4.3.110.0070.0307.30
4.3.100.0100.0137.30
4.3.90.0100.0237.30
4.3.80.0000.0377.30
4.3.70.0000.0237.30
4.3.60.0000.0277.30
4.3.50.0030.0207.30
4.3.40.0030.0337.30
4.3.30.0030.0207.30
4.3.20.0030.0207.30
4.3.10.0000.0207.30
4.3.00.0000.0307.01

preferences:
52.66 ms | 401 KiB | 5 Q