3v4l.org

run code in 300+ PHP versions simultaneously
<?php $row=array('username'=>'user1','password'=>'testpass','username'=>'user2','password'=>'testpass2'); $row2=$row['username']; foreach ($row as $rows){ while ( $row >=0 ){ echo "hello"; } } ?>

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.60.0170.01318.30
8.3.50.0180.00921.20
8.3.40.0260.00318.52
8.3.30.0220.00318.96
8.3.20.0100.00320.29
8.3.10.0070.00721.83
8.3.00.0070.00722.57
8.2.180.0200.00716.50
8.2.170.0240.00722.96
8.2.160.0220.00419.16
8.2.150.0080.00424.18
8.2.140.0030.00924.66
8.2.130.0190.00326.16
8.2.120.0060.00619.36
8.2.110.0070.00722.21
8.2.100.0070.01018.16
8.2.90.0070.00319.31
8.2.80.0080.00318.05
8.2.70.0040.00717.75
8.2.60.0040.00718.16
8.2.50.0030.00618.07
8.2.40.0100.00518.00
8.2.30.0120.00018.07
8.2.20.0100.00017.87
8.2.10.0030.00717.80
8.2.00.0090.00317.86
8.1.280.0270.00725.92
8.1.270.0100.00322.19
8.1.260.0080.00426.35
8.1.250.0130.00028.09
8.1.240.0100.00723.96
8.1.230.0140.00319.15
8.1.220.0110.00017.74
8.1.210.0040.00718.77
8.1.200.0070.00717.25
8.1.190.0100.00017.40
8.1.180.0080.00318.74
8.1.170.0040.00718.49
8.1.160.0000.01022.19
8.1.150.0040.00818.57
8.1.140.0050.00517.48
8.1.130.0060.00317.80
8.1.120.0030.00617.46
8.1.110.0070.00317.40
8.1.100.0060.00317.43
8.1.90.0000.01017.43
8.1.80.0090.00017.55
8.1.70.0060.00317.47
8.1.60.0040.00817.55
8.1.50.0080.00317.59
8.1.40.0000.01117.61
8.1.30.0040.00717.52
8.1.20.0080.00317.64
8.1.10.0120.00017.50
8.1.00.0060.00317.54
8.0.300.0070.00318.77
8.0.290.0090.00017.15
8.0.280.0080.00318.29
8.0.270.0030.00617.18
8.0.260.0100.00016.75
8.0.250.0060.00316.93
8.0.240.0070.00316.83
8.0.230.0030.00616.89
8.0.220.0030.00616.73
8.0.210.0030.00616.78
8.0.200.0030.00616.81
8.0.190.0120.00316.76
8.0.180.0000.01016.84
8.0.170.0040.00716.82
8.0.160.0080.00316.87
8.0.150.0070.00316.73
8.0.140.0060.00516.78
8.0.130.0000.01013.41
8.0.120.0070.00316.79
8.0.110.0080.00316.68
8.0.100.0070.00316.95
8.0.90.0040.00716.71
8.0.80.0240.00316.83
8.0.70.0110.00016.65
8.0.60.0040.00716.71
8.0.50.0070.00316.82
8.0.30.0290.01716.83
8.0.20.0300.01017.40
8.0.10.0060.00316.84
8.0.00.0370.01316.76
7.4.330.0090.00015.08
7.4.320.0000.00816.55
7.4.300.0040.00416.46
7.4.290.0030.00716.39
7.4.280.0040.00816.46
7.4.270.0070.00316.48
7.4.260.0030.00716.31
7.4.250.0060.00616.42
7.4.240.0070.00316.42
7.4.230.0030.00616.49
7.4.220.0130.02016.39
7.4.210.0110.01816.42
7.4.200.0030.00716.48
7.4.190.0090.00016.31
7.4.160.0100.02816.53
7.4.150.0350.01917.40
7.4.140.0290.01417.86
7.4.130.0410.01816.38
7.4.120.0400.01316.51
7.4.110.0290.01416.57
7.4.100.0470.02816.55
7.4.90.0350.01716.42
7.4.80.0230.01619.39
7.4.70.0240.00916.43
7.4.60.0210.01716.41
7.4.50.0060.00616.38
7.4.40.0110.01122.77
7.4.30.0100.03516.18
7.4.00.0180.00914.70
7.3.330.0040.00713.23
7.3.320.0050.00313.16
7.3.310.0110.00016.18
7.3.300.0030.00616.09
7.3.290.0140.01816.16
7.3.280.0160.01816.18
7.3.270.0350.00917.40
7.3.260.0320.02616.48
7.3.250.0290.02016.45
7.3.240.0340.01716.32
7.3.230.0200.02416.39
7.3.210.0270.01716.41
7.3.200.0310.00319.39
7.3.190.0260.01516.18
7.3.180.0260.01016.43
7.3.170.0230.01016.61
7.3.160.0310.01116.50
7.3.120.0130.01014.63
7.2.330.0240.01716.48
7.2.320.0200.01716.75
7.2.310.0120.03716.73
7.2.300.0200.02016.62
7.2.290.0300.00616.74
7.2.00.0030.01219.45
7.1.100.0130.00017.90
7.1.70.0030.00617.01
7.1.60.0100.02419.82
7.1.50.0090.00617.19
7.0.200.0110.00016.72

preferences:
54.61 ms | 404 KiB | 6 Q