3v4l.org

run code in 500+ PHP versions simultaneously
<?php $rows = [ [ 'x' => 1 ] ]; foreach ( (array) $rows as &$row ) { $row['y'] = 2; } echo json_encode( $rows ) . PHP_EOL;

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.80.0100.00818.50
8.5.70.0300.01016.92
8.5.60.0330.00816.63
8.5.50.0310.00916.47
8.5.40.0330.01016.42
8.5.30.0340.00816.46
8.5.20.0320.01116.55
8.5.10.0340.00816.39
8.5.00.0090.01016.67
8.4.230.0330.00619.57
8.4.220.0370.01019.40
8.4.210.0330.01119.48
8.4.200.0350.01019.41
8.4.190.0350.00719.34
8.4.180.0350.00619.68
8.4.170.0330.00919.62
8.4.160.0230.01019.80
8.4.150.0230.00619.47
8.4.140.0180.01217.72
8.4.130.0330.00917.64
8.4.120.0360.00817.76
8.4.110.0320.01117.80
8.4.100.0260.00917.72
8.4.90.0370.01217.37
8.4.80.0360.01017.75
8.4.70.0340.01017.65
8.4.60.0330.01017.82
8.4.50.0320.01117.75
8.4.40.0370.01017.51
8.4.30.0360.00817.76
8.4.20.0380.01017.56
8.4.10.0340.01117.58
8.3.320.0410.00718.50
8.3.310.0330.01218.38
8.3.300.0330.00918.46
8.3.290.0320.00918.32
8.3.280.0300.00918.43
8.3.270.0350.01116.74
8.3.260.0310.00516.74
8.3.250.0380.00916.62
8.3.240.0190.00516.65
8.3.230.0160.00516.57
8.3.220.0330.00916.68
8.3.210.0240.00516.64
8.3.200.0380.00416.42
8.3.190.0280.00716.66
8.3.180.0310.01116.51
8.3.170.0340.01016.40
8.3.160.0330.01016.54
8.3.150.0250.00416.55
8.3.140.0180.00316.68
8.3.130.0140.00416.53
8.3.120.0310.00916.55
8.3.110.0280.01216.21
8.3.100.0380.00716.31
8.3.90.0440.00816.46
8.3.80.0230.00516.49
8.3.70.0170.00216.70
8.3.60.0230.00616.61
8.3.50.0380.00716.58
8.3.40.0380.00917.79
8.3.30.0240.01217.65
8.3.20.0240.01117.83
8.3.10.0270.00918.03
8.3.00.0270.01017.84
8.2.320.0470.00917.77
8.2.310.0330.00717.80

preferences:
53.19 ms | 761 KiB | 5 Q