3v4l.org

run code in 300+ PHP versions simultaneously
<?php $GLOBALS['wp_version'] = '5.9-alpha-53344-src'; $current_version = substr( $GLOBALS['wp_version'], 0, 3 ); var_dump( $current_version ); $current_version = number_format( (float) $current_version - 0.1, 1 ); var_dump( $current_version ); $latest_stable = sprintf( '%s.x', $current_version ); var_dump( $latest_stable );

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.4.20.0140.00717.58
8.4.10.0100.01022.09
8.3.150.0110.00718.70
8.3.140.0030.00518.84
8.3.130.0050.00318.37
8.3.120.0000.00920.59
8.3.110.0060.01018.04
8.3.100.0100.00016.61
8.3.90.0000.00818.30
8.3.80.0030.00618.31
8.3.70.0090.01216.58
8.3.60.0130.00618.40
8.3.50.0160.00019.97
8.3.40.0070.00718.72
8.3.30.0030.01619.34
8.3.20.0080.00024.18
8.3.10.0040.00424.66
8.3.00.0000.00826.16
8.2.260.0080.01116.50
8.2.250.0090.00018.24
8.2.240.0090.00917.02
8.2.230.0060.00920.94
8.2.220.0060.00324.06
8.2.210.0180.00326.77
8.2.200.0080.00016.50
8.2.190.0110.00418.06
8.2.180.0140.00025.92
8.2.170.0120.00318.88
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0070.01021.23
8.2.100.0000.01118.09
8.2.90.0050.00318.22
8.2.80.0080.00017.97
8.2.70.0030.00617.93
8.2.60.0030.00618.16
8.2.50.0040.00418.10
8.2.40.0000.00719.35
8.2.30.0030.00520.55
8.2.20.0000.00720.46
8.2.10.0040.00418.09
8.2.00.0050.00219.24
8.1.310.0100.00015.98
8.1.300.0120.00316.13
8.1.290.0090.00018.88
8.1.280.0100.00325.92
8.1.270.0080.00023.99
8.1.260.0060.00326.35
8.1.250.0070.00028.09
8.1.240.0090.00022.11
8.1.230.0110.00421.02
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0040.00417.23
8.1.190.0030.00517.36
8.1.180.0080.00018.10
8.1.170.0030.00518.71
8.1.160.0040.00418.89
8.1.150.0070.00018.71
8.1.140.0040.00417.47
8.1.130.0070.00018.86
8.1.120.0000.01117.51
8.1.110.0030.00317.53
8.1.100.0040.00417.50
8.1.90.0000.00817.54
8.1.80.0000.00817.55
8.1.70.0070.00017.41
8.1.60.0040.00417.57
8.1.50.0090.00617.44
8.1.40.0060.00617.58
8.1.30.0070.00717.70
8.1.20.0140.00917.58
8.1.10.0180.00617.39
8.1.00.0150.00917.28
8.0.300.0070.00019.30
8.0.290.0000.00816.75
8.0.280.0000.00718.43
8.0.270.0040.00419.86
8.0.260.0030.00318.55
8.0.250.0030.00317.02
8.0.240.0080.00017.07
8.0.230.0000.00817.01
8.0.220.0000.00716.95
8.0.210.0000.00716.95
8.0.200.0030.00316.99
8.0.190.0080.00017.04
8.0.180.0090.00316.90
8.0.170.0150.00516.96
8.0.160.0190.00016.93
8.0.150.0120.00316.77
8.0.140.0120.00516.73
8.0.130.0070.00316.88
8.0.120.0050.00516.88
8.0.110.0040.00716.98
8.0.100.0070.00716.95
8.0.90.0060.00616.76
8.0.80.0150.00516.82
8.0.70.0150.00616.96
8.0.60.0180.00016.92
8.0.50.0100.00416.75
8.0.30.0150.00016.96
8.0.20.0100.00516.81
8.0.10.0130.00517.03
7.4.330.0020.00215.55
7.4.320.0040.00416.56
7.4.300.0030.00316.66
7.4.290.0160.00316.64
7.4.280.0040.00916.43
7.4.270.0100.00316.58
7.4.260.0110.00516.60
7.4.250.0140.00716.52
7.4.240.0130.00316.49
7.4.230.0080.00816.54
7.4.220.0170.00016.47
7.4.210.0110.00416.42
7.4.200.0120.00316.59
7.4.190.0120.00316.50
7.4.180.0110.00416.68
7.4.160.0100.00716.57
7.4.150.0120.00416.47
7.4.140.0150.00316.38
7.4.130.0130.00616.51
7.4.120.0110.00716.50
7.4.110.0150.00516.45
7.4.100.0160.00316.53
7.4.90.0090.00316.48
7.4.80.0170.00016.42
7.4.70.0150.00516.41
7.4.60.0130.00616.39
7.4.50.0140.00016.40
7.4.40.0060.00316.37
7.4.30.0070.00716.54
7.4.20.0130.00516.45
7.4.10.0080.00416.45
7.4.00.0040.00416.41

preferences:
55.99 ms | 403 KiB | 5 Q