3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array1 = array( 'post', 'page' ); $array2 = array( 'page', 'post' ); $equal = $array1 == $array2; $strict = $array1 === $array2; // Note: this will error in PHP 5.4 and lower (unsupported by WP) $equivalent = empty( array_diff( $array1, $array2) ); var_dump( 'equal', $equal ); var_dump( 'strict', $strict ); var_dump( 'equivalent', $equivalent );

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.70.0120.00516.80
8.5.60.0060.01116.59
8.5.50.0110.00618.47
8.5.30.0070.01017.96
8.5.20.0080.00919.93
8.5.10.0090.00816.69
8.5.00.0110.00920.00
8.4.220.0130.00919.42
8.4.210.0080.01421.40
8.4.180.0130.00919.66
8.4.170.0110.01223.67
8.4.160.0120.01223.94
8.4.150.0090.00416.80
8.4.140.0110.01017.30
8.4.130.0040.00618.84
8.4.120.0110.00623.84
8.4.110.0100.01018.55
8.4.100.0110.01017.78
8.4.90.0030.00520.55
8.4.80.0130.00719.03
8.4.70.0200.00718.34
8.4.60.0310.00817.61
8.4.50.0360.00517.68
8.4.40.0320.00717.53
8.4.30.0310.00717.58
8.4.20.0360.00817.62
8.4.10.0380.00617.62
8.3.310.0110.00818.41
8.3.300.0100.01020.70
8.3.290.0120.01220.78
8.3.280.0100.01018.38
8.3.270.0100.01016.64
8.3.260.0090.01016.19
8.3.250.0090.01018.81
8.3.240.0130.00616.95
8.3.230.0090.01216.54
8.3.220.0080.01019.11
8.3.210.0260.00617.29
8.3.200.0300.00816.90
8.3.190.0300.00716.86
8.3.180.0280.00716.90
8.3.170.0310.00516.82
8.3.160.0320.00916.81
8.3.150.0410.00816.73
8.3.140.0340.00616.90
8.3.130.0250.00816.97
8.3.120.0230.00616.77
8.3.110.0270.00616.84
8.3.100.0320.00816.96
8.3.90.0320.00716.91
8.3.80.0310.00716.76
8.3.70.0340.00716.79
8.3.60.0320.00616.90
8.3.50.0260.00616.90
8.3.40.0290.00717.59
8.3.30.0240.00617.62
8.3.20.0210.00517.62
8.3.10.0230.00817.66
8.3.00.0250.00617.63
8.2.310.0110.00818.16
8.2.300.0140.00922.10
8.2.290.0080.01120.48
8.2.280.0260.00616.84
8.2.270.0270.00716.86
8.2.260.0270.00716.91
8.2.250.0280.00816.95
8.2.240.0260.00916.84
8.2.230.0270.00716.92
8.2.220.0290.00616.82
8.2.210.0260.00816.82
8.2.200.0270.00716.74
8.2.190.0300.00716.73
8.2.180.0250.00716.83
8.2.170.0270.00617.68
8.2.160.0270.00417.69
8.2.150.0300.00517.60
8.2.140.0310.00817.60
8.2.130.0340.00717.57
8.2.120.0300.00817.65
8.2.110.0310.00717.57
8.2.100.0280.00617.68
8.2.90.0280.00617.79
8.2.80.0300.00617.61
8.2.70.0290.00617.63
8.2.60.0300.00917.61
8.2.50.0290.00717.57
8.2.40.0270.00717.63
8.2.30.0240.00717.57
8.2.20.0250.00817.66
8.2.10.0270.00717.64
8.2.00.0320.00417.68
8.1.340.0100.01017.54

preferences:
56.3 ms | 869 KiB | 5 Q