3v4l.org

run code in 500+ PHP versions simultaneously
<?php $rows = [ ['first_name' => 'Hi'] ]; foreach ($rows as $row) { echo "value=$row['first_name']"; }

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.3.50.0120.00716.86
7.2.70.0310.01014.68
7.2.60.0330.00615.05
7.2.50.0250.00914.92
7.2.40.0300.00314.63
7.2.30.0190.01514.85
7.2.20.0260.00914.43
7.2.10.0310.00314.76
7.2.00.0720.01014.73
7.1.170.0260.00713.63
7.1.160.0200.01213.41
7.1.150.0240.00713.79
7.1.140.0320.00013.77
7.1.130.0250.00613.60
7.1.120.0270.00313.72
7.1.110.0220.00813.80
7.1.100.0180.01213.65
7.1.90.0310.00313.88
7.1.80.0260.00913.50
7.1.70.0280.00413.57
7.1.60.0370.01331.73
7.1.50.0450.01431.76
7.1.40.0370.01431.66
7.1.30.0450.00631.91
7.1.20.0370.01431.87
7.1.10.0240.00713.73
7.1.00.0160.01013.64

preferences:
35.15 ms | 599 KiB | 4 Q