3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = array_map(function($a, $b) { return 1; }, range(0, 10), array_fill(0, 1, 2), array_fill(0, 100, 3), // not even used ); print count($array); // 100 ?>

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.00716.77
8.5.60.0120.00616.77
8.5.50.0110.00616.63
8.5.30.0110.00618.14
8.5.20.0060.01320.15
8.5.10.0090.01116.50
8.5.00.0130.01420.19
8.4.220.0130.01019.43
8.4.210.0060.00421.43
8.4.180.0120.01019.57
8.4.170.0110.01123.73
8.4.160.0080.00325.68
8.4.150.0090.00317.75
8.4.140.0120.01017.49
8.4.130.0060.00517.85
8.4.120.0090.01020.74
8.4.110.0090.00622.71
8.4.100.0130.00617.69
8.4.90.0060.00817.77
8.4.80.0090.00917.89
8.4.70.0390.01217.71
8.4.60.0360.00717.55
8.4.50.0300.01117.49
8.4.40.0160.00517.09
8.4.30.0160.00617.30
8.4.20.0280.00717.50
8.4.10.0380.00717.05
8.3.310.0090.00918.48
8.3.300.0030.00622.50
8.3.290.0100.01020.61
8.3.280.0120.00918.45
8.3.270.0100.00916.53
8.3.260.0050.00316.66
8.3.250.0110.00918.87
8.3.240.0120.00716.61
8.3.230.0120.00716.60
8.3.220.0180.00216.69
8.3.210.0300.01216.25
8.3.200.0330.01116.28
8.3.190.0370.01116.30
8.3.180.0500.01216.20
8.3.170.0370.01116.20
8.3.160.0380.00916.40
8.3.150.0400.00616.40
8.3.140.0350.00816.45
8.3.130.0280.00916.41
8.3.120.0350.00916.46
8.3.110.0310.00916.57
8.3.100.0390.00816.20
8.3.90.0360.01216.33
8.3.80.0380.00716.70
8.3.70.0220.00716.57
8.3.60.0160.00516.74
8.3.50.0250.00616.32
8.3.40.0410.00617.31
8.3.30.0320.00817.42
8.3.20.0330.00917.42
8.3.10.0340.00717.14
8.3.00.0130.00817.64
8.2.300.0130.00918.86
8.2.290.0040.00520.46
8.2.280.0280.00616.25
8.2.270.0350.00816.54
8.2.260.0310.00916.34
8.2.250.0320.00816.22
8.2.240.0330.00916.60
8.2.230.0290.01116.29
8.2.220.0280.00416.50
8.2.210.0200.01016.32
8.2.200.0310.00616.57
8.2.190.0300.00816.23
8.2.180.0380.00516.34
8.2.170.0340.01017.69
8.2.160.0360.00717.58
8.2.150.0370.00817.70
8.2.140.0340.01117.41
8.2.130.0360.00817.64
8.2.120.0400.00517.59
8.2.110.0310.00717.33
8.2.100.0320.01017.58
8.2.90.0320.00917.55
8.2.80.0330.01017.49
8.2.70.0310.00517.45
8.2.60.0320.00817.59
8.2.50.0320.00817.55
8.2.40.0290.01117.71
8.2.30.0270.00817.53
8.2.20.0270.00817.46
8.2.10.0300.01017.50
8.2.00.0310.00717.35
8.1.340.0110.01021.73

preferences:
59.04 ms | 855 KiB | 5 Q