3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 147 => [ "pts_m" => "", "pts_mreg" => 1, "pts_cg" => 1 ], 158 => [ "pts_m" => null , "pts_mreg" => null, "pts_cg" => 0 ], 159 => [ "pts_m" => "", "pts_mreg" => 1, "pts_cg" => 1 ] ]; var_export( array_sum( array_map( fn($row) => count(array_filter($row)), $array ) ) );

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.10.0120.00616.62
8.5.00.0120.01020.07
8.4.150.0010.00214.05
8.4.140.0140.00717.16
8.4.130.0120.00818.96
8.4.120.0120.00924.08
8.4.110.0100.00918.75
8.4.100.0110.01018.71
8.4.90.0120.00420.45
8.4.80.0120.00818.78
8.4.70.0090.01318.75
8.4.60.0100.01018.61
8.4.50.0100.01020.48
8.4.40.0130.00617.73
8.4.30.0050.00320.69
8.4.20.0180.00321.39
8.4.10.0370.01017.30
8.3.280.0100.01018.37
8.3.270.0120.00916.84
8.3.260.0060.00316.54
8.3.250.0110.00718.76
8.3.240.0130.00617.00
8.3.230.0030.00516.71
8.3.220.0100.00919.11
8.3.210.0070.00718.36
8.3.200.0040.00416.66
8.3.190.0110.00817.04
8.3.180.0100.00918.93
8.3.170.0140.00416.99
8.3.160.0040.01418.22
8.3.150.0100.01017.08
8.3.140.0290.01616.39
8.3.130.0310.01016.37
8.3.120.0160.00316.53
8.3.110.0170.00716.53
8.3.100.0120.00816.60
8.3.90.0160.00516.48
8.3.80.0210.00016.71
8.3.70.0070.01416.63
8.3.60.0240.00616.55
8.3.50.0400.00716.46
8.3.40.0210.01717.41
8.3.30.0260.01017.25
8.3.20.0300.01017.20
8.3.10.0290.00717.23
8.3.00.0110.01117.32
8.2.290.0120.00720.41
8.2.280.0060.00318.25
8.2.270.0110.00816.46
8.2.260.0310.00716.36
8.2.250.0160.01916.37
8.2.240.0160.01016.56
8.2.230.0190.00316.22
8.2.220.0240.00016.48
8.2.210.0100.00716.53
8.2.200.0200.00616.56
8.2.190.0110.00716.31
8.2.180.0180.00016.28
8.2.170.0320.00917.70
8.2.160.0410.00017.52
8.2.150.0280.01217.45
8.2.140.0370.00317.44
8.2.130.0380.01017.31
8.2.120.0380.00817.36
8.2.110.0360.00417.50
8.2.100.0280.00617.51
8.2.90.0240.00717.65
8.2.80.0280.00317.41
8.2.70.0310.00817.16
8.2.60.0270.01217.09
8.2.50.0380.00017.39
8.2.40.0330.00317.27
8.2.30.0350.00417.41
8.2.20.0330.00417.39
8.2.10.0240.01217.41
8.2.00.0330.00317.27
8.1.320.0050.00215.97

preferences:
43.53 ms | 403 KiB | 5 Q