3v4l.org

run code in 500+ PHP versions simultaneously
<?php function __( $content ) { return $content; } class WP_Locale { public $weekday; public function __construct() { $this->init(); $this->register_globals(); } public function init() { // The weekdays. $this->weekday[0] = /* translators: Weekday. */ __( 'Sunday' ); $this->weekday[1] = /* translators: Weekday. */ __( 'Monday' ); $this->weekday[2] = /* translators: Weekday. */ __( 'Tuesday' ); $this->weekday[3] = /* translators: Weekday. */ __( 'Wednesday' ); $this->weekday[4] = /* translators: Weekday. */ __( 'Thursday' ); $this->weekday[5] = /* translators: Weekday. */ __( 'Friday' ); $this->weekday[6] = /* translators: Weekday. */ __( 'Saturday' ); } public function register_globals() {} } // Should not throw a notice for: // Notice: Trying to access array offset on value of type null. $wp_locale = new WP_Locale(); var_dump( $wp_locale->weekday );

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.0140.00819.43
8.5.20.0080.01019.46
8.5.10.0100.00920.27
8.5.00.0120.01020.04
8.4.180.0120.01019.63
8.4.170.0100.01020.56
8.4.160.0060.00424.23
8.4.150.0060.00616.87
8.4.140.0090.01217.55
8.4.130.0130.00617.72
8.4.120.0050.00424.13
8.4.110.0030.00622.37
8.4.100.0060.00619.01
8.4.90.0140.00618.74
8.4.80.0150.00618.71
8.4.70.0050.00318.02
8.4.60.0120.00818.89
8.4.50.0060.00318.54
8.4.40.0170.00319.28
8.4.30.0160.00318.59
8.4.20.0030.01526.15
8.4.10.0090.01223.88
8.3.300.0100.01020.96
8.3.290.0100.01220.83
8.3.280.0110.01318.54
8.3.270.0140.00616.79
8.3.260.0110.00816.42
8.3.250.0090.01018.79
8.3.240.0100.00917.06
8.3.230.0140.00616.41
8.3.220.0100.00619.02
8.3.210.0070.00916.66
8.3.200.0040.00516.70
8.3.190.0080.00617.29
8.3.180.0050.00917.17
8.3.170.0150.00319.04
8.3.160.0120.00617.10
8.3.150.0080.00019.01
8.3.140.0030.00618.89
8.3.130.0040.00416.57
8.3.120.0110.00419.00
8.3.110.0060.00320.94
8.3.100.0100.00016.41
8.3.90.0000.00818.48
8.3.80.0060.00317.97
8.3.70.0090.00918.55
8.3.60.0060.00916.63
8.3.50.0170.00316.44
8.3.40.0140.00420.33
8.3.30.0070.00718.53
8.3.20.0150.00024.18
8.3.10.0050.00324.66
8.3.00.0080.00026.16
8.2.300.0090.01122.04
8.2.290.0100.00920.79
8.2.280.0040.00418.21
8.2.270.0040.00417.39
8.2.260.0040.00418.64
8.2.250.0110.00418.59
8.2.240.0100.00018.98
8.2.230.0000.00922.58
8.2.220.0150.00324.06
8.2.210.0040.00426.77
8.2.200.0070.00418.30
8.2.190.0130.00316.72
8.2.180.0070.01416.63
8.2.170.0210.00018.92
8.2.160.0080.00622.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00021.03
8.2.110.0030.00620.53
8.2.100.0030.00820.45
8.1.340.0120.00917.56
8.1.330.0100.00822.13
8.1.320.0110.00816.34
8.1.310.0080.01118.40
8.1.300.0080.00018.17
8.1.290.0120.00018.88
8.1.280.0110.00325.92
8.1.270.0040.00424.66
8.1.260.0050.00226.35
8.1.250.0000.00828.09
8.1.240.0110.00018.49
8.1.230.0030.00718.53
7.4.330.0050.00216.30

preferences:
70.09 ms | 863 KiB | 5 Q