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.0240.00316.38
8.3.50.0230.00617.23
8.3.40.0200.01318.71
8.3.30.0230.00318.62
8.3.20.0070.00718.78
8.3.10.0060.00620.48
8.3.00.0100.00319.25
8.2.180.0100.01316.75
8.2.170.0240.00722.96
8.2.160.0210.01021.14
8.2.150.0070.00724.18
8.2.140.0070.00724.66
8.2.130.0120.00026.16
8.2.120.0120.00020.88
8.2.110.0100.00721.00
8.2.100.0090.00917.91
8.2.90.0060.00619.34
8.2.80.0030.00719.26
8.2.70.0110.00017.75
8.2.60.0070.00717.93
8.2.50.0050.00518.07
8.2.40.0030.00718.22
8.2.30.0030.00618.14
8.2.20.0030.00717.83
8.2.10.0060.00317.68
8.2.00.0030.00617.74
8.1.280.0180.00725.92
8.1.270.0070.00424.66
8.1.260.0070.00726.35
8.1.250.0100.00328.09
8.1.240.0170.00020.77
8.1.230.0100.00720.96
8.1.220.0060.00617.74
8.1.210.0030.00918.85
8.1.200.0000.01117.23
8.1.190.0100.00017.53
8.1.180.0070.00318.10
8.1.170.0070.00318.93
8.1.160.0090.00018.82
8.1.150.0030.00618.71
8.1.140.0030.00717.52
8.1.130.0030.00617.56
8.1.120.0140.00017.48
8.1.110.0070.00317.42
8.1.100.0070.00317.56
8.1.90.0100.00017.41
8.1.80.0070.00317.50
8.1.70.0030.00717.50
8.1.60.0040.00717.65
8.1.50.0060.00617.54
8.1.40.0050.00517.46
8.1.30.0000.01217.67
8.1.20.0070.00317.64
8.1.10.0060.00317.49
8.1.00.0030.00617.45
8.0.300.0090.00019.94
8.0.290.0060.00616.58
8.0.280.0070.00318.36
8.0.270.0060.00317.19
8.0.260.0030.00616.63
8.0.250.0070.00416.86
8.0.240.0080.00316.74
8.0.230.0030.00616.87
8.0.220.0100.00016.70
8.0.210.0030.00616.82
8.0.200.0050.00516.69
8.0.190.0000.01116.84
8.0.180.0030.00716.75
8.0.170.0090.00316.81
8.0.160.0040.00816.77
8.0.150.0000.01116.66
8.0.140.0060.00716.66
8.0.130.0100.00013.35
8.0.120.0100.00016.87
8.0.110.0060.00316.68
8.0.100.0000.01116.64
8.0.90.0090.00016.70
8.0.80.0210.00716.82
8.0.70.0060.00316.75
8.0.60.0060.00316.71
8.0.50.0030.00716.73
8.0.30.0260.02117.13
8.0.20.0300.01316.81
8.0.10.0050.00516.91
8.0.00.0220.02216.78
7.4.330.0040.00412.94
7.4.320.0090.00016.48
7.4.300.0030.00616.39
7.4.290.0090.00016.47
7.4.280.0140.00916.39
7.4.270.0090.00316.27
7.4.260.0000.00913.25
7.4.250.0080.00416.45
7.4.240.0060.00316.28
7.4.230.0060.00316.36
7.4.220.0290.01316.33
7.4.210.0180.01416.39
7.4.200.0000.01016.49
7.4.190.0000.00916.27
7.4.160.0400.01516.37
7.4.150.0240.02016.61
7.4.140.0290.01816.39
7.4.130.0320.02116.54
7.4.120.0250.01616.32
7.4.110.0270.02116.36
7.4.100.0200.02716.38
7.4.90.0290.01216.39
7.4.80.0180.02419.39
7.4.70.0140.02016.47
7.4.60.0170.02116.32
7.4.50.0570.00416.45
7.4.40.0030.01716.25
7.4.30.0140.01916.43
7.3.330.0100.00013.08
7.3.320.0040.00713.21
7.3.310.0030.00616.02
7.3.300.0040.00416.05
7.3.290.0100.02916.20
7.3.280.0200.01316.22
7.3.270.0310.01816.37
7.3.260.0350.02116.61
7.3.250.0360.02516.36
7.3.240.0300.02016.28
7.3.230.0410.01316.20
7.3.210.0320.00916.23
7.3.200.0220.02016.29
7.3.190.0360.02016.57
7.3.180.0170.02016.34
7.3.170.0260.01916.38
7.3.160.0140.02316.23
7.3.120.0100.01714.46
7.3.110.0150.00914.68
7.3.100.0130.01014.77
7.3.90.0140.00714.82
7.3.80.0130.01314.77
7.3.70.0150.00414.71
7.3.60.0030.01814.78
7.3.50.0170.01014.94
7.3.40.0150.00914.93
7.3.30.0140.00414.88
7.3.20.0150.00616.69
7.3.10.0230.00016.57
7.3.00.0190.00616.73
7.2.330.0240.02116.73
7.2.320.0230.01916.74
7.2.310.0350.02116.79
7.2.300.0210.01816.40
7.2.290.0210.02216.78
7.2.240.0140.01114.95
7.2.230.0070.02014.80
7.2.220.0160.00914.91
7.2.210.0200.00715.17
7.2.200.0030.01715.03
7.2.190.0070.01814.71
7.2.180.0090.01315.17
7.2.170.0170.01714.97
7.2.160.0100.00715.04
7.2.150.0030.02216.52
7.2.140.0230.00616.86
7.2.130.0130.01316.57
7.2.120.0070.01716.92
7.2.110.0100.01317.04
7.2.100.0160.00916.73
7.2.90.0130.00916.97
7.2.80.0140.00716.95
7.2.70.0120.00616.80
7.2.60.0080.00817.01
7.2.50.0140.00716.96
7.2.40.0100.01316.59
7.2.30.0070.02417.11
7.2.20.0100.01317.06
7.2.10.0040.01817.02
7.2.00.0160.00818.11
7.1.330.0160.01315.80
7.1.320.0140.01115.95
7.1.310.0130.01615.76
7.1.300.0160.00615.83
7.1.290.0140.01015.68
7.1.280.0130.01015.79
7.1.270.0120.00915.72
7.1.260.0160.00715.40
7.1.250.0220.00015.66
7.1.100.0070.01017.77
7.1.70.0080.00017.02
7.1.60.0200.01319.40
7.1.50.0210.00716.77
7.0.200.0110.00016.98

preferences:
42.82 ms | 401 KiB | 5 Q