3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * SCORPEN ADS - MASTER ENTITY ENGINE v5.0 * بنية تحتية احترافية لإدارة الكيانات الرقمية - الشارقة */ // 1. تسجيل نوع المنشور والتصنيفات (Taxonomies) function scorpen_register_master_system() { // الكيانات (Customers) register_post_type('customers', [ 'labels' => ['name' => 'الكيانات الرقمية', 'singular_name' => 'كيان'], 'public' => true, 'has_archive' => true, 'supports' => ['title', 'editor', 'thumbnail', 'excerpt'], 'menu_icon' => 'dashicons-networking', 'show_in_rest' => true, ]); // تصنيف: التخصص (Specialty) register_taxonomy('specialty', 'customers', [ 'label' => 'التخصص / النوع', 'hierarchical' => true, 'show_admin_column' => true, ]); // تصنيف: مناطق الشارقة (Zones) register_taxonomy('sharjah_zones', 'customers', [ 'label' => 'مناطق الشارقة', 'hierarchical' => true, 'show_admin_column' => true, ]); } add_action('init', 'scorpen_register_master_system'); // 2. إضافة الحقول الاحترافية (Meta Box Hub) function scorpen_add_meta_fields() { add_meta_box('scorpen_entity_manager', '🚀 إعدادات الكيان الرقمي الشاملة', 'scorpen_render_fields', 'customers', 'normal', 'high'); } add_action('add_meta_boxes', 'scorpen_add_meta_fields'); function scorpen_render_fields($post) { $m = get_post_custom($post->ID); ?> <div style="display: grid; grid-template-columns: 1fr 1fr; gap: 15px; background: #f0f0f0; padding: 20px; border-radius: 10px; direction: rtl;"> <!-- القسم الأول: الاتصال والتوثيق --> <div style="background: #fff; padding: 15px; border-radius: 8px; border-right: 5px solid #2563eb;"> <h4 style="margin-top:0;">📡 بيانات الاتصال والتوثيق</h4> <label>رقم الهاتف/واتساب:</label> <input type="text" name="sp_phone" value="<?php echo @$m['sp_phone'][0]; ?>" style="width:100%; margin-bottom:10px;"> <label>رابط الموقع الإلكتروني:</label> <input type="url" name="sp_website" value="<?php echo @$m['sp_website'][0]; ?>" style="width:100%; margin-bottom:10px;"> <label>حالة التوثيق:</label> <select name="sp_verified" style="width:100%;"> <option value="no" <?php selected(@$m['sp_verified'][0], 'no'); ?>>غير موثق</option> <option value="yes" <?php selected(@$m['sp_verified'][0], 'yes'); ?>>موثق (الصح الزرقاء)</option> </select> </div> <!-- القسم الثاني: الميديا والفريمات --> <div style="background: #fff; padding: 15px; border-radius: 8px; border-right: 5px solid #ef4444;"> <h4 style="margin-top:0;">🖼️ الميديا والربط الخارجي</h4> <label>كود خريطة جوجل (Iframe):</label> <textarea name="sp_map" style="width:100%; height:60px;"><?php echo @$m['sp_map'][0]; ?></textarea> <label>رابط فيديو تيك توك الترويجي:</label> <input type="url" name="sp_tiktok_frame" value="<?php echo @$m['sp_tiktok_frame'][0]; ?>" style="width:100%;"> </div> <!-- القسم الثالث: السوشيال ميديا --> <div style="grid-column: span 2; background: #fff; padding: 15px; border-radius: 8px; border-right: 5px solid #10b981;"> <h4>🔗 روابط السوشيال ميديا بالكامل</h4> <div style="display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px;"> <input type="url" name="sp_fb" value="<?php echo @$m['sp_fb'][0]; ?>" placeholder="Facebook URL"> <input type="url" name="sp_ig" value="<?php echo @$m['sp_ig'][0]; ?>" placeholder="Instagram URL"> <input type="url" name="sp_tk" value="<?php echo @$m['sp_tk'][0]; ?>" placeholder="TikTok URL"> </div> </div> <!-- القسم الرابع: SEO والأسكيما --> <div style="grid-column: span 2; background: #fff; padding: 15px; border-radius: 8px; border-right: 5px solid #000;"> <h4>🛠️ محرك الأرشفة والمنتجات (Schema Engine)</h4> <label>قائمة الخدمات / المنتجات (كل خدمة في سطر):</label> <textarea name="sp_services" style="width:100%; height:100px;"><?php echo @$m['sp_services'][0]; ?></textarea> </div> </div> <?php } // حفظ البيانات add_action('save_post', function($post_id) { $fields = ['sp_phone', 'sp_website', 'sp_verified', 'sp_map', 'sp_tiktok_frame', 'sp_fb', 'sp_ig', 'sp_tk', 'sp_services']; foreach ($fields as $field) { if (isset($_POST[$field])) update_post_meta($post_id, $field, $_POST[$field]); } });

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.5.30.0200.00916.75
8.5.20.0190.00816.70
8.5.10.0180.00616.72
8.5.00.0150.00716.77
8.4.180.0170.00719.73
8.4.170.0140.00819.67
8.4.160.0160.00719.62
8.4.150.0160.00619.53
8.4.140.0210.00417.59
8.4.130.0190.00517.63
8.4.120.0200.00518.00
8.4.110.0200.00917.75
8.4.100.0170.00418.04
8.4.90.0120.00718.03
8.4.80.0140.00417.90
8.4.70.0180.00617.71
8.4.60.0180.00617.91
8.4.50.0170.00817.99
8.4.40.0190.00517.77
8.4.30.0200.00417.76
8.4.20.0140.00617.71
8.4.10.0210.00517.56
8.3.300.0150.00818.43
8.3.290.0190.00718.07
8.3.280.0190.00418.39
8.3.270.0180.00616.51
8.3.260.0170.00816.57
8.3.250.0170.00716.62
8.3.240.0160.00716.52
8.3.230.0180.00416.65
8.3.220.0130.00516.60
8.3.210.0180.00616.67
8.3.200.0170.00516.48
8.3.190.0190.00516.47
8.3.180.0190.00616.59
8.3.170.0220.00516.40
8.3.160.0210.00616.46
8.3.150.0160.00316.68
8.3.140.0180.00616.57
8.3.130.0160.00716.50
8.3.120.0180.00516.51
8.3.110.0150.00716.48
8.3.100.0200.00616.62
8.3.90.0230.00416.62
8.3.80.0160.00416.47
8.3.70.0140.00416.41
8.3.60.0180.00516.63
8.3.50.0170.00416.66
8.3.40.0150.00517.80
8.3.30.0160.00817.87
8.3.20.0200.00617.74
8.3.10.0170.00817.62
8.3.00.0160.00617.74

preferences:
41.84 ms | 731 KiB | 4 Q