3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Ems_Dhv_Jugend { public static function post_submit_meta_box_fum( $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.0090.00618.30
8.3.50.0100.01221.99
8.3.40.0110.00418.76
8.3.30.0110.00420.13
8.3.20.0000.00820.34
8.3.10.0080.00021.92
8.3.00.0080.00022.48
8.2.180.0110.01116.50
8.2.170.0070.00722.96
8.2.160.0040.01121.89
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0130.00726.16
8.2.120.0040.00419.48
8.2.110.0060.00322.24
8.2.100.0110.00017.84
8.2.90.0040.00419.11
8.2.80.0040.00419.39
8.2.70.0120.00017.50
8.2.60.0100.00017.80
8.2.50.0000.00818.07
8.2.40.0040.00718.03
8.2.30.0070.00418.08
8.2.20.0050.00317.61
8.2.10.0050.00317.66
8.2.00.0030.00717.73
8.1.270.0080.00024.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.84
8.1.230.0040.00819.14
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0000.01017.22
8.1.190.0080.00017.30
8.1.180.0040.00418.88
8.1.170.0050.00318.70
8.1.160.0000.00720.81
8.1.150.0030.00618.58
8.1.140.0000.00717.36
8.1.130.0000.00717.82
8.1.120.0050.00317.30
8.1.110.0040.00417.47
8.1.100.0000.00817.29
8.1.90.0040.00417.39
8.1.80.0030.00417.39
8.1.70.0040.00417.38
8.1.60.0060.00317.49
8.1.50.0040.00417.45
8.1.40.0040.00417.52
8.1.30.0030.00617.51
8.1.20.0080.00017.68
8.1.10.0000.00817.47
8.1.00.0030.00617.41
8.0.300.0040.00418.77
8.0.290.0000.00717.18
8.0.280.0050.00318.38
8.0.270.0030.00317.13
8.0.260.0030.00316.84
8.0.250.0030.00317.04
8.0.240.0040.00416.93
8.0.230.0030.00317.04
8.0.220.0060.00316.97
8.0.210.0030.00316.89
8.0.200.0000.00717.02
8.0.190.0040.00417.04
8.0.180.0000.00816.88
8.0.170.0030.00516.93
8.0.160.0080.00017.04
8.0.150.0040.00416.90
8.0.140.0000.00816.87
8.0.130.0030.00313.37
8.0.120.0030.00516.93
8.0.110.0040.00416.93
8.0.100.0000.00716.86
8.0.90.0000.00716.95
8.0.80.0100.00716.88
8.0.70.0040.00416.87
8.0.60.0040.00416.94
8.0.50.0040.00416.86
8.0.30.0100.01417.20
8.0.20.0140.00517.40
8.0.10.0070.00017.07
8.0.00.0120.00616.99
7.4.330.0030.00315.00
7.4.320.0040.00416.46
7.4.300.0030.00316.46
7.4.290.0070.00016.51
7.4.280.0030.00316.66
7.4.270.0070.00016.62
7.4.260.0030.00313.20
7.4.250.0000.00916.34
7.4.240.0040.00416.57
7.4.230.0000.00716.52
7.4.220.0090.01516.62
7.4.210.0060.01016.62
7.4.200.0050.00316.36
7.4.190.0040.00416.75
7.4.160.0120.00416.50
7.4.150.0110.00717.40
7.4.140.0150.00717.86
7.4.130.0080.00916.36
7.4.120.0130.00616.61
7.4.110.0060.01316.35
7.4.100.0100.00716.55
7.4.90.0090.00916.66
7.4.80.0090.01219.39
7.4.70.0040.01316.54
7.4.60.0130.00916.51
7.4.50.0060.00316.48
7.4.40.0060.01022.77
7.4.30.0100.00716.49
7.4.10.0050.00915.07
7.4.00.0020.01415.09
7.3.330.0060.00013.35
7.3.320.0030.00313.33
7.3.310.0040.00416.27
7.3.300.0030.00316.39
7.3.290.0040.01116.37
7.3.280.0080.00716.36
7.3.270.0100.01017.40
7.3.260.0090.00616.32
7.3.250.0050.01316.42
7.3.240.0060.01216.31
7.3.230.0030.01716.39
7.3.210.0110.00616.36
7.3.200.0090.00919.39
7.3.190.0090.00916.41
7.3.180.0070.00716.39
7.3.170.0110.01216.44
7.3.160.0050.01116.41
7.3.130.0070.00314.76
7.3.120.0100.00514.84
7.3.110.0030.01314.81
7.3.100.0030.00914.66
7.3.90.0070.00714.79
7.3.80.0030.01014.78
7.3.70.0060.00814.92
7.3.60.0070.00714.84
7.3.50.0120.00314.82
7.3.40.0050.00314.78
7.3.30.0030.01414.85
7.3.20.0000.01316.40
7.3.10.0000.01416.60
7.3.00.0050.00516.56
7.2.330.0040.01416.43
7.2.320.0090.00916.48
7.2.310.0110.00516.32
7.2.300.0130.00316.67
7.2.290.0120.00316.56
7.2.260.0110.00415.06
7.2.250.0130.00314.79
7.2.240.0030.01214.94
7.2.230.0000.01615.10
7.2.220.0000.01314.97
7.2.210.0070.00714.91
7.2.200.0060.01015.05
7.2.190.0030.00715.00
7.2.180.0090.00615.14
7.2.170.0030.01015.00
7.2.160.0000.01515.05
7.2.150.0060.00616.61
7.2.140.0080.00616.75
7.2.130.0040.01116.79
7.2.120.0080.01116.55
7.2.110.0130.00416.96
7.2.100.0060.00916.59
7.2.90.0060.00316.52
7.2.80.0000.01216.95
7.2.70.0070.01016.44
7.2.60.0030.01016.65
7.2.50.0030.01016.80
7.2.40.0040.01216.86
7.2.30.0170.00316.68
7.2.20.0050.01216.60
7.2.10.0040.01516.84
7.2.00.0060.00617.94
7.1.330.0130.00015.61
7.1.320.0090.00015.99
7.1.310.0060.01015.50
7.1.300.0060.00615.83
7.1.290.0070.00715.54
7.1.280.0070.00715.50
7.1.270.0030.01015.50
7.1.260.0000.01015.77
7.1.250.0090.00615.78
7.1.240.0080.00815.85
7.1.230.0110.00315.71
7.1.220.0100.00315.72
7.1.210.0100.00015.65
7.1.200.0000.01215.37
7.1.190.0000.01015.77
7.1.180.0000.01815.81
7.1.170.0070.01015.56
7.1.160.0060.00915.59
7.1.150.0060.01215.51
7.1.140.0070.01015.76
7.1.130.0070.01015.62
7.1.120.0000.01315.82
7.1.110.0030.01015.58
7.1.100.0130.00315.68
7.1.90.0130.00015.70
7.1.80.0070.01015.78
7.1.70.0070.00516.24
7.1.60.0030.00916.33
7.1.50.0100.01516.16
7.1.40.0030.01015.74
7.1.30.0030.01115.65
7.1.20.0060.00615.74
7.1.10.0060.00915.80
7.1.00.0050.03218.95
7.0.330.0060.00315.06
7.0.320.0030.00715.36
7.0.310.0070.01015.12
7.0.300.0070.00715.30
7.0.290.0090.00315.14
7.0.280.0040.00415.43
7.0.270.0030.00615.18
7.0.260.0030.01015.48
7.0.250.0000.00815.37
7.0.240.0080.00315.30
7.0.230.0030.01015.44
7.0.220.0000.01115.54
7.0.210.0040.01215.25
7.0.200.0040.00915.79
7.0.190.0070.00715.45
7.0.180.0040.00715.43
7.0.170.0110.00415.18
7.0.160.0110.00415.50
7.0.150.0090.00615.41
7.0.140.0030.04018.69
7.0.130.0070.00715.25
7.0.120.0070.00715.23
7.0.110.0040.00715.22
7.0.100.0060.00615.47
7.0.90.0000.01215.37
7.0.80.0040.00415.34
7.0.70.0070.00715.13
7.0.60.0090.04017.68
7.0.50.0100.04516.57
7.0.40.0120.04216.91
7.0.30.0180.04216.75
7.0.20.0170.04816.79
7.0.10.0170.02616.71
7.0.00.0080.03816.76
5.6.400.0040.00713.93
5.6.390.0030.01313.95
5.6.380.0030.01014.68
5.6.370.0030.01414.36
5.6.360.0060.00614.63
5.6.350.0120.00314.07
5.6.340.0030.00914.62
5.6.330.0030.01214.36
5.6.320.0000.01114.71
5.6.310.0060.00914.23
5.6.300.0090.00314.23
5.6.290.0030.00914.44
5.6.280.0030.03917.85
5.6.270.0000.01514.09
5.6.260.0000.01214.37
5.6.250.0060.01214.28
5.6.240.0080.00314.33
5.6.230.0060.00914.58
5.6.220.0030.01014.40
5.6.210.0020.03817.51
5.6.200.0070.04916.26
5.6.190.0040.04917.47
5.6.180.0120.04017.37
5.6.170.0250.02817.41
5.6.160.0050.03017.41
5.6.150.0080.03016.25
5.6.140.0080.04316.36
5.6.130.0060.05016.33
5.6.120.0030.02617.61
5.6.110.0050.04017.77
5.6.100.0080.04317.67
5.6.90.0030.05517.63
5.6.80.0060.04317.40
5.6.70.0200.03917.43
5.6.60.0030.01014.21
5.6.50.0030.01214.04
5.6.40.0030.01414.45
5.6.30.0030.01014.27
5.6.20.0000.01114.41
5.6.10.0070.00714.20
5.6.00.0070.00413.90
5.5.380.0070.00314.07
5.5.370.0030.00614.23
5.5.360.0040.00413.86
5.5.350.0050.01817.30
5.5.340.0060.03916.18
5.5.330.0000.04317.24
5.5.320.0170.04117.38
5.5.310.0150.02417.17
5.5.300.0070.03215.95
5.5.290.0030.03416.22
5.5.280.0080.04017.66
5.5.270.0140.04117.39
5.5.260.0060.02517.40
5.5.250.0170.04017.37
5.5.240.0100.04017.25
5.5.230.0000.01514.17
5.5.220.0000.01114.26
5.5.210.0070.00714.11
5.5.200.0000.01613.85
5.5.190.0050.00513.96
5.5.180.0030.00614.25
5.5.170.0100.00314.00
5.5.160.0060.00913.75
5.5.150.0060.00613.98
5.5.140.0030.01314.28
5.5.130.0090.00614.49
5.5.120.0030.01014.29
5.5.110.0000.01414.23
5.5.100.0030.01014.38
5.5.90.0050.00514.04
5.5.80.0060.00613.79
5.5.70.0040.00813.87
5.5.60.0000.01314.31
5.5.50.0030.01213.98
5.5.40.0110.00414.00
5.5.30.0090.00314.31
5.5.20.0100.00713.90
5.5.10.0130.00414.21
5.5.00.0120.00614.16
5.4.450.0050.03415.14
5.4.440.0150.03015.32
5.4.430.0100.03315.29
5.4.420.0080.03115.02
5.4.410.0080.03315.24
5.4.400.0180.03414.72
5.4.390.0270.02914.67
5.4.380.0190.02614.68
5.4.370.0100.02714.79
5.4.360.0100.03014.93
5.4.350.0060.02311.51
5.4.340.0050.02611.53
5.4.330.0000.01110.87
5.4.320.0050.02111.59
5.4.310.0080.02211.76
5.4.300.0040.02511.57
5.4.290.0040.02611.78
5.4.280.0070.02711.78
5.4.270.0040.02811.55
5.4.260.0100.02011.56
5.4.250.0050.02111.73
5.4.240.0080.02614.80
5.4.230.0070.02714.87
5.4.220.0070.03114.78
5.4.210.0160.02814.79
5.4.200.0080.03214.84
5.4.190.0050.04314.83
5.4.180.0060.02814.83
5.4.170.0050.03214.82
5.4.160.0080.03614.83
5.4.150.0030.03914.77
5.4.140.0100.03913.59
5.4.130.0100.03613.66
5.4.120.0100.02713.67
5.4.110.0020.03613.86
5.4.100.0050.03613.74
5.4.90.0080.02713.80
5.4.80.0050.02913.61
5.4.70.0030.02813.74
5.4.60.0060.02813.82
5.4.50.0060.02513.86
5.4.40.0100.02913.86
5.4.30.0050.03013.74
5.4.20.0090.02513.73
5.4.10.0100.03713.75
5.4.00.0070.02713.42
5.3.290.0050.02411.78
5.3.280.0070.03312.55
5.3.270.0080.03012.53
5.3.260.0080.04012.72
5.3.250.0140.03012.56
5.3.240.0050.04012.69
5.3.230.0080.03612.58
5.3.220.0150.02312.61
5.3.210.0070.02712.46
5.3.200.0030.03112.35
5.3.190.0070.02512.63
5.3.180.0050.02812.66
5.3.170.0050.03012.68
5.3.160.0100.03712.73
5.3.150.0150.02612.51
5.3.140.0000.03112.57
5.3.130.0030.03112.52
5.3.120.0060.03912.55
5.3.110.0020.03312.63
5.3.100.0030.03012.34
5.3.90.0070.03912.39
5.3.80.0030.03312.23
5.3.70.0060.02612.32
5.3.60.0050.02812.21
5.3.50.0080.03312.36
5.3.40.0120.02312.21
5.3.30.0050.02812.18
5.3.20.0050.03012.23
5.3.10.0050.02712.08
5.3.00.0050.02911.96
5.2.170.0030.04311.25
5.2.160.0030.04311.26
5.2.150.0030.04311.26
5.2.140.0030.04311.16
5.2.130.0000.04711.18
5.2.120.0100.03311.04
5.2.110.0070.04011.31
5.2.100.0130.03311.08
5.2.90.0100.05011.13
5.2.80.0130.04011.30
5.2.70.0100.05711.02
5.2.60.0070.05711.17
5.2.50.0130.03710.88
5.2.40.0070.04310.98
5.2.30.0200.03011.23
5.2.20.0030.04311.16
5.2.10.0070.05011.05
5.2.00.0000.05010.65
5.1.60.0100.03310.11
5.1.50.0030.04010.07
5.1.40.0100.03010.07
5.1.30.0000.04310.44
5.1.20.0100.04710.42
5.1.10.0030.03710.34
5.1.00.0070.05010.17
5.0.50.0030.0308.73
5.0.40.0030.0408.44
5.0.30.0100.0378.32
5.0.20.0070.0238.46
5.0.10.0100.0378.40
5.0.00.0070.0438.39
4.4.90.0000.0237.30
4.4.80.0100.0237.30
4.4.70.0100.0207.30
4.4.60.0100.0177.30
4.4.50.0030.0237.30
4.4.40.0070.0337.29
4.4.30.0000.0307.30
4.4.20.0000.0237.30
4.4.10.0000.0237.30
4.4.00.0000.0437.30
4.3.110.0030.0237.30
4.3.100.0100.0237.30
4.3.90.0000.0237.30
4.3.80.0070.0307.30
4.3.70.0070.0177.30
4.3.60.0070.0277.30
4.3.50.0030.0277.30
4.3.40.0030.0437.30
4.3.30.0000.0307.30
4.3.20.0000.0237.30
4.3.10.0000.0237.29
4.3.00.0000.0237.00

preferences:
49.26 ms | 400 KiB | 5 Q